在Android的浏览器中,在画布上绘画,页面滚动? [英] Paint on Canvas in Android's browser, page scroll?
问题描述
我试图画一个画布,客户可以在那里签名。它在Chrome v6中运行良好:
但是在Android 1.5上,而不是绘制浏览器滚动页面并且什么也不绘图:
我借用 Opera的网站。
我可以禁用滚动或如何使这项工作?
谢谢!
EDIT
使用事件 touchstart
, touchmove
和 touchend $ c $ g>:
使用触控笔:
:
:
编辑2
使用指甲效果更好whitout
@Sirber可能有touchstart和touchend事件,就像在移动Safari,看看那个大道。也许如果你调整视口元标记,将不会有任何滚动,仍然不会绘制,但至少它不会滚动。
祝你好运, / p>
Mathieu
I'm trying to make a canvas where the client can sign his name. It works well in Chrome v6:
but on Android 1.5 instead of drawing the browser scrolls the page and draws nothing:
I borrows the code from Opera's website. Can I disable the scrolling or how can I make this work?
Thank you!
EDIT
using the events touchstart
, touchmove
and touchend
:
on a LG GW620R using a stylus:
on a Motorola Milestone:
on a Samsung Galaxy:
EDIT 2 works better whitout using the finger nail
@Sirber There might be touchstart and touchend events just like in mobile Safari, have a look at that avenue too. And maybe if you adjust the viewport meta tag there won't be any scrolling, still won't draw but at least it won't scroll.
Good luck,
Mathieu
这篇关于在Android的浏览器中,在画布上绘画,页面滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!