core icon indicating copy to clipboard operation
core copied to clipboard

Support swiping for mobile devices

Open wilzbach opened this issue 8 years ago • 6 comments

wilzbach avatar May 31 '16 09:05 wilzbach

How is that done in HTML?

stonemaster avatar May 31 '16 10:05 stonemaster

There is a multi touch api in js, but you probably want to use one of the existing and tested libraries like https://github.com/thebird/Swipe

API is very basic, you give it a Dom element and specify the callbacks on swipe

wilzbach avatar May 31 '16 21:05 wilzbach

To make it smooth you probably want to fetch all the content before and avoid a page redraw. See also #152

wilzbach avatar May 31 '16 21:05 wilzbach

As it seems that we need a proper solution for this, I reopen.

wilzbach avatar Jun 20 '16 02:06 wilzbach

Please do not override default behavior for mobile devices. It is very annoying for user to have a normal operation suddenly do something else.

JackStouffer avatar Jun 20 '16 04:06 JackStouffer

But there isn't a default way to swipe to the next page on mobile devices, or is there? I thought that supporting swipe gestures would be more "intuitive" - at least if it's done right.

wilzbach avatar Jun 21 '16 21:06 wilzbach