-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Horizontal scroll support #287
Comments
Yes, this will be very usefull |
Yes, this would be very helpful! |
v4 or earlier is not supported anymore. Please check out v5 if you have this issue. |
Does that imply v5 supports this? |
What do you mean by horizontal swipes? The horizontal demo works find on my mac when clicking the trackpad and dragging one finger. Is that what you mean? |
I believe that he refers to right/left flicks (without clicking/pressing the touchpad). It is a bit dodgy right now, if you perform a very fast flick it seems to be working, slightly slower ones do not respond. |
This issue occurs on mac and other OSs with two finger scrolling. It also might occur when using a mouse with horizontal mouse wheel capabilities. In addition, with |
Not sure if two finger, no-click scrolling on touchpads should and can be supported. @cubiq ? |
low pri- but I'll look into this |
The source of jquery-mousewheel might provide some insight. The readme says that the plugin returns deltaX and deltaY that are normalized across platforms. |
I pulled some of the jquery-mousewheel code and have a rough version of horizontal scrolling working in this fork. This also should fix #568 since it takes into account the event.deltaMode for scrolling which gives a unit distance for the scroll event. It's not perfect yet but should be a start to fixing these issues. |
Any update on this issue? bump I'm trying to figure out why does the horizontal demo work with horizontal swipe, but using |
May be related with PR #523 |
#523 looks to be an option to set whether or not if a vertical scroll will scroll a horizontal iScroll. This is about if a horizontal scroll will scroll a horizontal iScroll. The math should be pretty much identical, just on a different axis. In fact, I have a patch to translate both horizontal and vertical scrolls to a horizontal scroll, but I haven't made a PR for it. |
@matthew-dean did you ever make a PR with you changes? That would be really nice to spread the wisdom on that :) |
When using a trackpad on mac, horizontal swipes don't translate to horizontal scrolling, as they would if iScroll was not present.
An option to translate vertical scroll wheels to horizontal scroll (for horizontal-only iScroll panels) would be nice too.
The text was updated successfully, but these errors were encountered: