Fix mouse handling in python demos
Merge pull request #1429 from nzjrs:fix-sketcher