Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

android - Disable vibrate feedback ontouch in Tizen Web App on Samsung Watch

I'm making a game for Samsung watches using Tizen Web App and HTML5 Canvas. I'm trying to disable vibrate feedback every time the user presses the screen.

I've tried return false at the end of the event, and that didn't work.

The only other idea I've found is adding tizen.feedback.stop() at the beginning of the event, however this only forces the watch to stop vibrating after it's already started, making it unpredictable. However, this makes it seems like the vibration starts before the event, but I know it's possible cause I've seen other apps without the vibrate feedback.

And all it takes is an element to click on for it to vibrate:

<div style="width:200px; height:200px; background-color:red;" onmousedown="click();"></div>

So how do I disable vibrate on touch for good? Thanks.

question from:https://stackoverflow.com/questions/65877509/disable-vibrate-feedback-ontouch-in-tizen-web-app-on-samsung-watch

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...