Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Horizontal scroll support #287

Open
matthew-dean opened this issue Oct 25, 2012 · 15 comments
Open

Horizontal scroll support #287

matthew-dean opened this issue Oct 25, 2012 · 15 comments

Comments

@matthew-dean
Copy link

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.

@jmarizgit
Copy link

Yes, this will be very usefull

@vbmedia
Copy link

vbmedia commented Jul 30, 2013

Yes, this would be very helpful!

@davidpfahler
Copy link
Collaborator

v4 or earlier is not supported anymore. Please check out v5 if you have this issue.

@matthew-dean
Copy link
Author

Does that imply v5 supports this?

@davidpfahler
Copy link
Collaborator

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?

@cubiq
Copy link
Owner

cubiq commented Dec 22, 2013

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.

@davidpfahler davidpfahler reopened this Dec 23, 2013
@bpeacock
Copy link

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 scrollX: true and scrollY: false the vertical mouse wheel event causes iScroll to scroll horizontally. While this may be desired for some applications, this is not intuitive behavior and should not be the default for users without horizontal mouse wheel capabilities.

@davidpfahler
Copy link
Collaborator

Not sure if two finger, no-click scrolling on touchpads should and can be supported. @cubiq ?

@cubiq
Copy link
Owner

cubiq commented Dec 27, 2013

low pri- but I'll look into this

@bpeacock
Copy link

The source of jquery-mousewheel might provide some insight. The readme says that the plugin returns deltaX and deltaY that are normalized across platforms.

@bpeacock
Copy link

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.

@tomasdev
Copy link

Any update on this issue? bump I'm trying to figure out why does the horizontal demo work with horizontal swipe, but using scrollX: true with scrollY: false doesn't

@tomasdev
Copy link

May be related with PR #523

@matthew-dean
Copy link
Author

#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.

@dflynn15
Copy link

@matthew-dean did you ever make a PR with you changes? That would be really nice to spread the wisdom on that :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants