Hyunje Alex Jun
c1c41e6d14
CSS fixes for IE.
2014-01-21 21:38:45 +09:00
Hyunje Alex Jun
b8d8218c03
Add a getEventClassName() function.
...
Each scrollbar object should have its own event class name. Unless,
When the one scrollbar is destroyed, another one's event will be
unbinded too.
The getEventClassName() function returns a unique event class name.
2014-01-21 12:22:04 +09:00
Andre Siviero
63c6d67ad5
Implemments Home, End, pageUp, pageDown and Spacebar
2014-01-20 20:14:26 -02:00
Hyunje Alex Jun
40b46a4071
Change the scrolling logic.
...
Add a scroll handler to handle the previously unhandled events,
and remove updateBarSizeAndPosition() where it's not needed anymore.
2014-01-15 00:23:21 +09:00
Hyunje Alex Jun
71838b9f72
Don't prevent the default scrolling for the inactive axis.
2013-12-14 16:33:15 +09:00
Adrian Carneiro
fa806adb55
Added 4 new setting options (suppressScrollX, suppressScrollY, scrollXMarginOffset and scrollYMarginOffset)
...
Added 4 new setting options (suppressScrollX, suppressScrollY,
scrollXMarginOffset and scrollYMarginOffset)
2013-11-06 15:20:30 -05:00
Hyunje Alex Jun
43c7b22678
Add click handlers on scrollbar rails to scroll to the position.
2013-09-30 23:32:50 +09:00
Hyunje Alex Jun
51db8add43
Implement visible rail feature.
...
Now the scrollbars are wrapped by rail elements, and
the styles and scripts are heavily changed to implement the feature.
2013-09-30 23:32:50 +09:00
Hyunje Alex Jun
8ea7291469
Implement keyboard scrolling.
...
Now when the element is hovered by mouse cursor, it can be scrolled
with arrow keys on the keyboard.
2013-09-30 17:24:12 +09:00
Hyunje Alex Jun
c4632c97ed
Change the event namespace to 'perfect-scrollbar'.
...
There's no reason to use 'perfect-scroll'.
It's weird.
2013-09-30 17:04:26 +09:00
Hyunje Alex Jun
18c9517205
Merge pull request #64 from jakubmal/flexible-scroll
...
Use vertical scroll for horizontal scrollbar if only horizontal scrollbar is present.
2013-09-29 23:47:44 -07:00
Jakub Malinowski
16998f95f1
Added optional useBothWheelAxes to allow more flexible scrolling if only one axe is scrollable
2013-09-28 00:53:57 +02:00
Julien Castelain
067b10d83d
Make it AMD compatible
2013-09-20 11:04:29 +02:00
Hyunje Alex Jun
ebef76a2c6
Add unbind for 'document'.
...
The function call is needed cause there are mouse handlers
for the element.
2013-09-09 10:12:35 +09:00
Hyunje Alex Jun
be5e338869
Update jshintrc.
...
Added strict, laxcomma and camelcase options.
Removed the es5 option.
2013-08-31 02:24:43 +09:00
Hyunje Alex Jun
cf8cea8b13
Fix that wheelPropagation option doesn't work in Firefox.
2013-08-06 15:14:55 +09:00
Fabian Vogelsteller
74f97e330e
reduced the risk of memory leaks
2013-08-06 14:18:21 +09:00
Hyunje Alex Jun
af7194114a
Fix Firefox scrolling problem in OS X.
...
In OS X, there was the problem that the mousewheel event's
preventDefault() doesn't work well. This patch fixes the problem.
2013-08-01 02:03:44 +09:00
Hyunje Alex Jun
123b1d724b
Fix the formula between scroll position and scrollbar position.
...
With @Mordhak's suggestion, fixed the formula to calculate the values.
This patch will resolve the scroll position problem when the
minScrollbarLength setting is applied.
2013-08-01 01:03:33 +09:00
Drew Miller
ab2a018c93
minScrollbarLength setting
...
I couldn't figure out the rebasing stuff so I just deleted my fork and
redid the work. I believe I followed the contributing guidlines
correctly as well.
2013-07-17 12:53:02 -04:00
Zeno Zeng
68c297fe2c
Use supportsTouch
instead of isMobile
.
2013-07-08 23:25:24 +09:00
Hyunje Alex Jun
f02f5e89b7
Fix ie6 scrollbar position problem.
...
This patch is in fact contributed by the idea of @maoziliang.
2013-06-16 17:56:40 +09:00
Hyunje Alex Jun
21d5d4ab63
Separate the function updating the css of scrollbars.
2013-06-16 17:45:37 +09:00
maoziliang
e833f42d02
Fixed the scrollbar height for xp sp3 ie6
...
set 'font-size:0' for the scrollbar
2013-06-16 17:22:18 +09:00
maoziliang
a52d55957d
Add hover handlers for ie6.
...
Use scripts to add '.hover' class on the `.ps-container` and both
scrollbars when then mouse is over them because :hover is not supported
except 'a' element.
2013-06-16 17:13:20 +09:00
maoziliang
e93d67e754
Add feature to suport ie.
...
For ie browser, the `.ps-container` element will add extra class `ie`
and `ie<version>`, like `ie6`, `ie7`, `ie8`, etc.
2013-06-16 17:00:12 +09:00
Hyunje Alex Jun
d8c961ee32
Csslint the css file.
2013-06-15 22:04:50 +09:00
Hyunje Alex Jun
3b1c37440e
Inhance the scroll logic with mobile touches.
...
The scroll works only when the user touch and scroll the wrapper div
with just one touch. By this patch, the zoom function will not be
prevented by scrolling content.
2013-06-14 21:57:24 +09:00
Hyunje Alex Jun
eb8f28cd26
JSHint the code.
...
Missing space.
2013-06-14 21:38:33 +09:00
Hyunje Alex Jun
34a505d319
Remove $content.
...
It's not used anymore.
2013-06-14 21:35:32 +09:00
Zeno Zeng
d14dfd307e
use scrollHeight & scrollWidth to avoid getting the wrong size of the content
2013-06-14 10:13:30 +08:00
itsdrewmiller
351631cfa7
Fixing jumpiness for large scrolls
...
https://github.com/noraesae/perfect-scrollbar/issues/16
2013-06-12 12:57:43 -03:00
maoziliang
3410cf89be
update the destroy method. unbind listeners by event namespace.
...
This will be convenient for adding new event bind in the file. Do not
worry about forgetting to unbind it.
2013-06-02 11:16:33 +08:00
Ahmad Sherif
d5dd3422cf
Wrap core functionality in an each function
...
If we have many DOM elements that match the PerfectScrollbar selector,
then all elemets get scrolled if one of them is scrolled.
2013-05-22 11:48:51 +02:00
Hyunje Alex Jun
4613c3daee
Code refactoring.
2013-05-18 12:41:15 +09:00
Hyunje Alex Jun
4012ce9c8c
Prevent scrollbar x from moving out of the container.
2013-05-18 12:21:20 +09:00
etnassoft
4f49b0fa7f
Fix bug with mouse wheel
2013-03-21 11:21:20 +01:00
Hyunje Alex Jun
69c37268a1
Apply jshint.
2013-03-14 15:46:12 +09:00
GregDThomas
38b8b818e8
See issue #10 - provide support for optional settings, including prevention of the mousewheel event and the speed of scrolling
2013-03-14 11:36:57 +09:00
Hyunje Alex Jun
aa213398f3
Enhance scroll preventDefault logic.
...
Now scroll preventDefault works more like default browser scroll.
When the scroll leaches top, bottom, left and right end, don't
prevent default scrolling. For sure, when the content size is
smaller than the container size, also don't prevent default scrolling.
2013-02-16 00:17:23 +09:00
Hyunje Alex Jun
1cdbc9509f
Fix missed ';'
...
In JavaScript, it's the convension that ';' is placed
at the end of statement
2013-02-15 23:58:57 +09:00
David
627b6a6b81
Take into account padding and margins on content
...
Changed the height and widths calculations of the content div to
include any padding and/or margins.
outerHeight(true) is changed to outerHeight(false).
outerWidth is changed as same.
Fixed by noraesae.
2013-02-15 23:44:20 +09:00
Hyunje Alex Jun
0099bb556c
Supports the mobile touch scrolling.
...
Using touch events, support mobile scrolling with touch.
2013-02-12 22:37:45 +09:00
Hyunje Alex Jun
a6bb9d02a3
Include jquery-mousewheel in src.
2013-02-08 10:35:34 +09:00
David
dacb601f9f
Update src/perfect_scrollbar.js
...
Ensure the panel is at the top after an update where the scroll bars
are removed. Other wise it is possible to get stuck midway down a panel
with no way of scrolling.
2013-02-07 14:29:44 +10:00
Hyunje Alex Jun
1bd0c102db
IE support.
2012-11-10 17:30:09 +09:00
Hyunje Alex Jun
db020f1d29
bug fix.
...
if handler functions are null, don't do anything.
2012-11-10 13:41:31 +09:00
Hyunje Alex Jun
a96c918dc8
Add update and destroy function, enhance css.
...
this is the release version!
2012-11-10 03:13:47 +09:00
Hyunje Alex Jun
474351752d
Add x-axis scroll function.
2012-11-09 01:32:10 +09:00
Hyunje Alex Jun
efe6727e5d
Add y-axis scroll function.
2012-11-08 22:22:26 +09:00
Hyunje Alex Jun
ca22fedf65
Add wheel scroll function.
2012-11-06 22:35:27 +09:00
Hyunje Alex Jun
b409aa3ff3
Base source structure.
2012-11-06 22:01:41 +09:00