Learn Create Your Own Split Screen

Next Page

We'll also look at three touch events:

Whereas you receive mousemove events even if none of the mouse buttons are down, obviously you can't receive a touchmove event unless a finger is down.

The information you receive for a touch is also different. Instead of a single coordinate, you get an array of coordinates corresponding to all the fingers which are touching.

Let's get started with an example.