HTML Canvas双击突出显示问题 [英] HTML Canvas Double Click Highlight Issue
问题描述
有什么最好的方法来解决这个问题?我需要将画布放在某物中(我尝试将其包围在表格中,但情况更糟),或者我需要断开特定信号。
谢谢
我在这里找到了一个简单的解决方案。
a href =https://stackoverflow.com/questions/3799686/clicking-inside-canvas-element-selects-text>单击画布内的元素选择文本
I have an HTML canvas and I have implemented a simple double click function. When the page contains only a canvas, everything works fine. However, as soon as I add, for example, a simple text input field, everytime I double click strange things start to get highlighted (try randomly clicking on certain parts of this page and a similar situation arises).
What's the best way to get around this? Do I need to enclose the canvas in something (I tried enclosing it in a table but that made the situation worse) or do I need to disconnect a specific signal.
Thanks
I found a simple answer to this problem here
Clicking inside canvas element selects text
这篇关于HTML Canvas双击突出显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!