CH11 / E67|Fine-Tuning Mouse Gestures|Mon, 28 Jan ’13
Self-Contained
Registering events on the document causes problems with our tests, and it’s not very clean. We refactor our code and tests to make the drawing area entirely self-contained, only registering event handlers on itself.