6

We are trying to use html5 canvas with tablet stylus, but we have a problem with palm touching with multitouch tablets. When a person try to draw something and touch the display surface with the palm, lines occurs because of the multitouch.

Do you know how to disable multitouch on tablet through js or canvas option, or do you know if there is a html5 canvas palm rejection techonology.

DavidPostill
  • 7,734
  • 9
  • 41
  • 60
user2386652
  • 81
  • 1
  • 5

2 Answers2

3

There are some newer web APIs available in current browsers. In particular, the radiusX and radiusY of the touches from a touch event can be used to compute the area of touch. The areas larger than that of a finger, or stylus, could be ignored.

wes24
  • 43
  • 6
1

The palm rejection feature must be implemented in the browser itself or the operating system on the tablet. In HTML5 and Javascript there is no way of knowing how big the "Finger" is, that touches the canvas.

Palm rejection works fine on tablets that have a dedicated stylus, like the galaxy note series.

As to disabling the Multitouch functionality: There is no way of knowing for the browser, which touchpoint belongs to the stylus and wich one belongs to your palm.

chillichief
  • 1,164
  • 12
  • 22
  • maybe this is a very disappointing answer. but i've been working on this issue myself and the solution we saw as the most efficient was buying a galaxy note pro 12. – chillichief Mar 24 '15 at 14:34
  • We found something which works with galaxy tab stylus S Pen. When touch the screen with S Pen and check the js touch event, we found that radiusX and radiusY are 0, but when you touch it with palm or finger their values are > 0. This can help you – user2386652 Apr 05 '15 at 14:13
  • But with the s pen you have automatic Palm rejection anyways. So you dont have to implement it with javascript – chillichief Apr 05 '15 at 14:54