Fix form events on both touch/mouse devices

Fixes #931