03-17-2011 05:02 AM
[Using the 9800 simulator, OS v.6 ]
While working with SVG and touch interaction in my applicaiton, it seems that touchevent are not received by SVG DOM element. Indeed, with the following svg :
<rect id="rect1" ontouchstart="alert('touchstart');" onmousedown="alert('mousedown')" x="10" y="45" width="300" height="300" fill="#ff0000"/> </svg></body></html>
When I test this page in the 9800 simulator, the behavior is:
1: pressing left mouse button on the rect -> onmousedown is received
2: pressing right mouse button on the rect -> onmousedown is received, while I was expecting a touchstart.
Note that if I add a <span> element that listens to touchstart event, it gets correctly notified (it also crashes the JVM, but that's another story ). So it really seems to be SVG-DOM specific.
So my question: are touch events supported on SVG DOM element ?
03-17-2011 03:37 PM
This is a little off topic, but does the onmousedown event work for you on a simulator with a 5.0 OS? I am also trying to work on an app with SVG, but cannot get the events to fire with 5.0.
03-28-2011 11:19 AM
So, are there any support for touching event on the SVG nodes in BB os 6.0 ?
PS: @Silaryn: what simulator are you using ? I tried the 184.108.40.2061 (model 9650) and svg is not displayed at all. sorry...