Jump to content
Search Community

seansly

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by seansly

  1. I still get the issue with onClick as the only callback.  It seems to not "break" as often on codepen, but when I run this locally it breaks every time.  If you refresh the page after loading a mobile view, it should break on codepen though.

     

    Quote

    like why are you calling .enable().update() in the onPress?

    I started building this off an old gsap example and from what I can tell, since I technically need to adjust the viewbox window instead of actually dragging something around... the draggable is attached to a proxy element that gives me pointer information and it doesn't work correctly unless I have that .enable().update() in the onPress.  If that's removed you should notice the viewbox jumping around.

     

    the gsap reference is here:

    See the Pen bGRLpwZ by seansly (@seansly) on CodePen

  2. loading the codepen and then turning on the mobile view, refresh the page, then click and you should get two events.  I don't think this is intended but maybe I just have it set up wrong.  It doesn't happen outside of mobile view.

     

    console:

    image.png.e01827a9a3eff2e4b483638cc2b2b449.png

     

    It seems like the double event happens on a phone or when the browsers mobile mode is set to a phone size specifically, responsive wont trigger two events

     

    Any advice?

     

    See the Pen jOwvmNy by seansly (@seansly) on CodePen

×
×
  • Create New...