简体   繁体   English

Tizen可穿戴设备屏幕顶部的Javascript触摸事件

[英]Javascript Touch Event at the Top of Screen for Tizen Wearable Device

I started to learn Tizen wearable web development just a few weeks ago. 几周前,我开始学习Tizen可穿戴式Web开发。 When I tried to add a "touchstart" and a "touchend" event listener to an element at the top of screen. 当我尝试向屏幕顶部的元素添加“ touchstart”和“ touchend”事件侦听器时。 I found the "touchstart" event will not be triggered when I press on it. 我发现按下“ touchstart”事件不会被触发。 And both the two events will be triggered at the same time, which means when click activity is over, these two events will be triggered together. 这两个事件将同时触发,这意味着单击活动结束时,这两个事件将一起触发。

This only happens to elements at the top of the screen. 这仅发生在屏幕顶部的元素上。 The tizenhwkey has been disabled, and "event.preventDefault()" is called. tizenhwkey已禁用,并且调用了“ event.preventDefault()”。 Both "true" and "false" have been tried as the third parameter of "addEventListener" function. “ true”和“ false”都已尝试作为“ addEventListener”函数的第三个参数。 Still the problem is not solved. 问题仍然没有解决。

Has anyone ever met this problem? 有人遇到过这个问题吗?

please check the following link: https://developer.tizen.org/forums/web-application-development/touch-event-top-screen-wearable-device 请检查以下链接: https : //developer.tizen.org/forums/web-application-development/touch-event-top-screen-wearable-device

HTML + JS code is given there, I tested it both in emulator and device and it works. 这里提供了HTML + JS代码,我在模拟器和设备中都对其进行了测试,并且可以正常工作。

I am using Tizen IDE Version : 2.4.0_Rev5 Build id : 20151223-1450 我正在使用Tizen IDE版本:2.4.0_Rev5版本ID:20151223-1450

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM