borismus / MagicTouch

Spec-compatible touch events based on npTuioClient callbacks
http://smus.com/multi-touch-browser-patch
346 stars 194 forks source link

FF4 - Operation is not supported" code: "9 #1

Open JohnRSim opened 13 years ago

JohnRSim commented 13 years ago

I`m getting Operation is not supported" code: "9"

var evt = document.createEvent('CustomEvent'); Line 28

I have npTuioClient NPAPI setup on firefox Using TUIOdroid as the interface and not TongSeng

Also I noticed line 84 on touch.html returns - event is not defined.

JohnRSim commented 13 years ago

To fix - update magicTouch.js line 28 to var evt = document.createEvent('HTMLEvents');

Also I`m working with touchlog.html please update event listener useCapture with false

rect.addEventListener('touchstart', function(event) { console.log('touchstart on r1'); console.log(event.targetTouches); },false);

davidonet commented 13 years ago

'event' not defined can be fixed by 'document.event'