DanielApt
3e76ce9d3e
Merge branch 'pr/433'
2016-01-23 17:24:22 +00:00
Hyunje Alex Jun
fbfe505408
Remove comments from source files
...
Abundant comments.
2016-01-05 11:27:42 +09:00
DanielApt
4d7f441d1f
Merge pull request #422 from axelboc/master
...
Fix events not triggered when scrolling past boundaries
2015-12-26 13:37:29 +01:00
Hyunje Alex Jun
4f6ed64b17
Make keyboard handler consistent when focused
...
Resolve #437
2015-12-23 23:34:37 +09:00
Hyunje Alex Jun
8a3ed6d0b7
Add tabindex properties to scrollbars
...
Resolve #425
2015-12-10 13:36:19 +09:00
Hyunje Alex Jun
1dfbbe9e56
Set scrollbar size to 0 when inactive
...
Resolve #415
2015-12-10 13:17:59 +09:00
Hyunje Alex Jun
eb02d5ae65
Remove select element hack for Firefox
...
The select scrolling bug has been resolved in the latest version of
Firefox.
Resolve #311
2015-12-10 12:59:23 +09:00
wujekbogdan
eddd2c2731
themeable perfect-scrollbar
...
- added „theme” parameter
- replaced all the CSS visual styles with SCSS variables
- added $ps-theme-default SCSS map that holds all the variables
- added $theme parameter to all the mixins
2015-12-09 18:19:02 +01:00
Axel Bocciarelli
c04b662a1b
fix events not triggered when scrolling too past boundaries
...
Instead of returning when scrolling past the container's boundaries,
override `value` to the max allowed and let the other custom events
fire if needed.
2015-11-23 08:59:59 +11:00
Axel Bocciarelli
9f9f15f83c
fix lint error
2015-11-19 11:50:31 +11:00
Axel Bocciarelli
7e04a2e72b
trigger events on update
...
Dispatch the custom events on `Ps.update`:
```
container.scrollTop = 50;
Ps.update(container);
```
This is useful for controlling the scroll position via left/right
arrows and enabling/disabling these arrows on scroll or when the
start/end is reached. This also allows for the events to be dispatched
on page load by calling `Ps.update` right after `Ps.initialise`.
2015-11-19 11:26:28 +11:00
Axel Bocciarelli
24b34d3dea
fix scroll-end events not triggered
...
... when dragging the scrollbar to the end with the mouse.
2015-11-19 11:05:57 +11:00
DanielApt
e1910cde3e
use pageX/YOffset instead of scrollX/Y
...
As pointed out by @pliasetski these properties are not supported in IE11 and below
This fixes #409
2015-11-16 22:25:11 +00:00
DanielApt
bbf3d4db9f
Remove usages of scrollbarYTop and scrollbarXLeft
...
#390
2015-11-10 22:41:56 +00:00
DanielApt
3b134d6193
Fix broken drag scrolling when left is out of viewport
...
Related to #390
2015-11-09 23:11:33 +00:00
DanielApt
e9024292cd
Fix broken drag scrolling when top is out of viewport
...
Addresses issue no. 390 #390
2015-11-08 22:03:35 +00:00
Hyunje Alex Jun
17e5f67519
Make selection scroll optional
...
It's not essential but rather causes several problems.
2015-10-03 21:37:24 +09:00
Hyunje Alex Jun
002034fd54
Return an Array object from class.list
...
To fix #383
2015-10-03 21:21:56 +09:00
Hyunje Alex Jun
c285521caa
Lint update-scroll.js
...
With the new .eslintrc
2015-10-03 20:45:38 +09:00
DanielApt
a0d39e1b49
Make sure scroll is at the start/end when the reach start/end event fires
2015-09-29 15:28:58 +01:00
DanielApt
0b8fe0ac0b
Dispatch events when reaching start / end of axes
2015-09-28 11:08:59 +01:00
DanielApt
3b90c734e4
Dispatch custom scroll events with new updateScroll function
2015-09-23 20:49:37 +01:00
Hyunje Alex Jun
51f33a44b5
Remove unused garbage rails before append a new one.
...
This patch fixes #376 .
2015-08-18 03:51:12 +09:00
Hyunje Alex Jun
8eac54d49f
Add a queryChildren method to dom.js
2015-08-18 03:26:15 +09:00
Hyunje Alex Jun
ed4e335978
Declare a module object DOM in dom.js
...
To refer in the sibling methods.
2015-08-18 03:23:27 +09:00
srcn
f200bea4cc
add shift+space support for keyboard
2015-08-17 15:19:30 +03:00
Dan Maglasang
158b113d18
Allow the clicking of a rail to propagate
2015-07-22 22:43:38 -04:00
Hyunje Alex Jun
6c642d8a47
Just early return instead of throwing an error for no instance.
2015-07-14 12:22:40 +09:00
Hyunje Alex Jun
f9f20eeb6f
Add null-check when updating or destroying an instance.
...
Throw an error when an instance is not found.
2015-07-07 15:25:16 +09:00
ahspw
3dbf20a5d0
perfect RTL support
2015-06-22 21:36:43 +09:00
Hyunje Alex Jun
fc28ceb4ea
Stop propagating click event through scrollbar rails.
...
Fixes #326 .
2015-04-29 13:08:03 +09:00
Hyunje Alex Jun
ca4d835129
Simplify parseInt.
...
Because `~~` isn't necessarily faster than `parseInt` in every browser.
Now I think it'd be better to make it readable and simple.
2015-04-15 21:41:11 +09:00
Claus Augusti
de32082a62
changed the toInt()'s function behavior so that it returns 0 on empty strings
2015-04-15 13:56:38 +02:00
Jaron Kennel
a40ab40695
Fix clicking and dragging the scrollbar rails with large margin values.
...
Fix initial rail height/width calculation: Set the rails to display:block temporarily to correctly calculate percentage margins
Account for scrolltop/left on the document.
2015-04-13 13:12:00 -04:00
Hyunje Alex Jun
a0b3754a0d
Lint.
...
Missing semicolon.
2015-04-11 02:24:49 +09:00
Hyunje Alex Jun
dc7b14d0e1
Consume mousewheel event when there's hovered textarea.
...
Only when it needs to be scrolled.
2015-04-11 02:16:37 +09:00
DanielApt
aca7683de1
Change tab size to 2
2015-04-02 10:18:46 +01:00
DanielApt
bb58ab98e3
Fix failing test
2015-03-27 18:28:51 +00:00
DanielApt
633f1f53d3
Check if parentNode exists
...
We need to check if parentNode exists, as in some scenarios it does not (e.g. phantomjs < 2)
2015-03-27 16:58:10 +00:00
Hyunje Alex Jun
4a7f27356a
Change the way to re-attach rails when they're detached.
...
Instead of destroying and re-initialising the plugin, just re-append
them.
2015-03-11 22:07:14 +09:00
Sergey Bondarenko
cbdf812de8
Issue #296 has been fixed
2015-03-05 14:41:12 +02:00
Rupert Angermeier
42cf8d3679
Adapt fallback for selection
...
Thanks @darthmaim for pointing this out
2015-02-19 16:31:27 +01:00
Rupert Angermeier
8290c4f726
Fix issue with false selection detection
...
`selection.rangeCount` will return 1 when user is typing something in a
form widget. This will consequently trigger unvoluntary scrolling when
the mouse is moved outside of scrollable area. Checking the actual
length of selected text doesn't trigger this behaviour.
2015-02-18 13:34:36 +01:00
Hyunje Alex Jun
b4a51fc454
Hide scrollbars only when updated manually.
...
Resolve #283 .
2015-02-17 01:46:13 +00:00
Hyunje Alex Jun
a12def5213
Fix typo in dom.matches
2015-02-17 01:28:33 +00:00
Hyunje Alex Jun
c4790bb656
Add IE support for dataset.
...
IE doesn't support dateset, so use a raw `data-ps-id`
attribute.
2015-02-17 01:26:44 +00:00
Hyunje Alex Jun
11997131f4
Add AMD support.
2015-02-12 18:45:04 +00:00
Hyunje Alex Jun
ab40b55c8f
Add CommonJS support for the jQuery adaptor.
2015-02-12 18:25:17 +00:00
Hyunje Alex Jun
68d468c465
Add NPM and CommonJS compatibility.
2015-02-11 17:00:48 +00:00
Hyunje Alex Jun
81dd8e9eb0
Add a guard to check if activeElement exists.
2015-02-11 16:00:19 +00:00