ArthurClemens / mithril-slider

Content slider for Mithril for mobile and desktop
30 stars 5 forks source link

Turn off touch area / make area interactive. #2

Closed djtango closed 8 years ago

djtango commented 8 years ago

Hey this is really awesome, am just having a play around with this.

My use-case is to have a carousel of pages to cycle through (not sure if this is the most effective widget for this...!) but I notice that the touch area for swiping occupies the entire div - is there an option to turn this off? Just wanted to check before starting to play around with the internals...

djtango commented 8 years ago

Just to clarify, by interactive I mean highlightable text. links seem to work.

ArthurClemens commented 8 years ago

I don't think that the slider works well if you combine horizontal swiping with vertical scrollable content. In the examples is a 'Pages' example (not accessible in the menu) that shows the effect: http://arthurclemens.github.io/mithril-slider/index.html#/pages

If works ok-ish on desktop, but on mobile you see all kind of side effects because the scroll direction is not locked, and the browser has difficulties painting the image.