vueuse / gesture

🕹 Vue Composables making your app interactive

Home Page:https://gesture.vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag config option does not work

Sovai opened this issue · comments

commented

Hi I follow the doc using drag configuration like below

useGesture(
  {
    onDrag: (ctx) => handleDrag(ctx),
    onDragEnd: (ctx) => handleDragEnd(ctx),
  },
  {
    domTarget: sheetRef,
    drag: {
      filterTaps: true,
      preventWindowScrollY: true,
      useTouch: true,
      delay: 1000, // test
    },
  }
);

however, it seems to not apply at all. I test the delay and preventWindowScrollY it still does not work. I follow the doc here

Am I missing anything?