Languages

Menu
Sites
Language
How to Disable Gesture Events
How to disable swipe events which were enabled previously by following code var element = document.getElementById("test_el"); tau.event.enableGesture(element, new tau.event.gesture.Swipe( { orientation: "horizontal" })); element.addEventListener("swipe", function(e) { console.log("swipe = " + e.detail.direction); })
View Selected Answer

Responses

5 Replies
Mark as answer
Vikram

Hello,

You can remove the detector by following code.

       tau.event.disableGesture(element);

 

 

 

Anubhav Gupta

Thanks, it's working.

 

Palitsyna

Hello,

just fyi, here is documentation about gestures, where you can find information about swipe:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.web.apireference/html/ui_fw_api/wearable/event/gesture.htm

Ricky Kim

Hi !

 

The swipe down action drags the status screen down.

Can we disable this action ? We have our own swipe down action.

 

Thanks.

 

 

 

jesse walter

Follow the below mentioned code :-

 

   tau.event.disableGesture(element);

 

 

Hope this information is helpful to you