You should use Touch events not mouse events.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362172
Title:
[webapp-container] 2d context drawed to only first one canvas in one
page
To manage
The runtime did not response to every clicks if the user click quickly,
verified with my testing app[1] on utopic-proposed build 234.
This should be filed in another new bug.
current build number: 234
device name: mako
channel: ubuntu-touch/utopic-proposed
last update: 2014-09-09 12:54:29
If you use touch event[1][2], it works[3] as expected.
[1] Touch Events http://www.w3.org/TR/touch-events/
[2] Safari Web Content Guide: Handling Events
https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
[3]
Did you get quick response for the mouse clicks? I found that it is still
the same as before.
On Tue, Sep 9, 2014 at 9:46 PM, Rex Tsai rex.t...@canonical.com wrote:
The runtime did not response to every clicks if the user click quickly,
verified with my testing app[1] on utopic-proposed build
I have changed the source to the following. I found that the mouse up
and down events seem missing if I click quickly. However, the same code
works fine in the desktop environment. For example, the following
mouseupis not called if I click very quickly in the area of the first
canvas. I think this
Also found that the container runtime can not identify object correctly
from web inspector.
** Attachment added: selct canvas 1 from web inspector.
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1362172/+attachment/4188295/+files/20140827210525.png
--
You received this bug
It seems the runtime get the right canvas object.
If I tested with
console.log(document.getElementById(canvas1).getContext(2d)), I can get two
canvasn objects.
** Attachment added: 2014-08-27 21:07:59 的螢幕擷圖.png
** Attachment added: com.ubuntu.developer.chihchun.canvas_0.1_all.click
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1362172/+attachment/4188291/+files/com.ubuntu.developer.chihchun.canvas_0.1_all.click
--
You received this bug notification because you are a member of Ubuntu
** Attachment added: selct canvas 2 from web inspector.
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1362172/+attachment/4188296/+files/20140827210533.png
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
Rex, looking at your code I’m seeing this:
var c2 = document.getElementById(canvas2);
var ctx2 = c.getContext(2d);
would it work better if you replaced the second line with:
var ctx2 = c2.getContext(2d);
--
You received this bug notification because you are a member of Ubuntu
If the code is like as follows, there is no drawing at all for the
second canvas. I just removed the first, and it shows:
Your browser does not support the HTML5 canvas tag.
=
canvas
Yes, it was typo. Thanks!
** Changed in: webbrowser-app (Ubuntu)
Status: New = Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362172
Title:
[webapp-container] 2d context drawed to
XiaoGuo,
Please paste the image version and screenshot you are testing.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362172
Title:
[webapp-container] 2d context drawed to only first one canvas
13 matches
Mail list logo