Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript follow finger touchscreen compatible

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #235663
    joepk
    Participant

    For my little codepen. How to make this compatible for touch devices?

    Is there a simple way? I just copied a project and made it nicer.
    Help me, help us :)

    http://codepen.io/joepk/pen/NxPrWO/ “Fullscreen image comparison”

    Cheers!

    #235664
    Shikkediel
    Participant

    Untested but probably something like this :

    http://pastebin.com/vhJ99q9H

    If .slider-wrapper isn’t fullscreen, it would be better and easiest to repeat the mouseleave functions for touchend bound to the window object. There used to be a touchleave in the old W3 draft but it’s not there anymore, making an adaptation slightly overcomplicated.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.