双击绘图时 jqplot 出现闪烁问题

发布于 2024-12-16 18:55:31 字数 139 浏览 3 评论 0原文

双击 jqplot 图表时,它会闪烁并且不显示数据点。当我再次在画布外部单击时,它会重新出现。这就是例子。我是否缺少任何财产?

在此处输入图像描述

When double clicking a jqplot graph, it is blinking and not showing the data point. When I click outside the canvas again, it reappears. This is the example. Is there any property that I am missing?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满天都是小星星 2024-12-23 18:55:31

现在,我抓住了你。这是一个 webkit 的东西(Safari 和 Chrome 背后的引擎)。双击是“选择”div。

将此 -khtml-user-select: none; 添加到图表 div 样式中。如:

<div id="chart1" style="-khtml-user-select: none; height:300px; width:500px;"></div>

这会使其表现良好吗?

Now, I got you. It's a webkit thing (the engine behind Safari and Chrome). The double-click is "selecting" the div.

Add this -khtml-user-select: none; to the chart div style. As in:

<div id="chart1" style="-khtml-user-select: none; height:300px; width:500px;"></div>

Does that make it behave?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文