I noticed that in chrome if you have an asp.net image button and do a mouse down then a mouse move and finally a mouse up, a click event is not fired. It works in other browsers. Does any body have a work around to this ???
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It's because chrome starts a select/drag behavior when you do that. Try the following css.
html, body, div, span, object, form, input, h1, h2, button, label, a, img
{
-moz-user-select: none;
-webkit-user-select: none; /* this will work for QtWebKit in future */
-webkit-user-drag: none;
}