开发者

Prevent copy dialog on iPhone (IOS4) when pressing on jQuery UI Slider

开发者 https://www.devze.com 2023-04-01 02:43 出处:网络
On a web page with a jQuery UI Slider, using the iPhone\'s web browser, pressing and holding a finger on the sli开发者_StackOverflow社区der control will pop up (after 2-3 seconds) the phone\'s built i

On a web page with a jQuery UI Slider, using the iPhone's web browser, pressing and holding a finger on the sli开发者_StackOverflow社区der control will pop up (after 2-3 seconds) the phone's built in copy (and more options) dialog. See image of dialog (ignore the rest of the screen content. This is just to illustrate the dialog I'm referring to)

Is there a way to signal to the browser to avoid opening this dialog?

Prevent copy dialog on iPhone (IOS4) when pressing on jQuery UI Slider


Maybe you can change the slider to use the javascript swipe event.

For me, I detect iOS browsers and replace all sliders with jscrollpane, it supports finger swiping.

0

精彩评论

暂无评论...
验证码 换一张
取 消