mike-jumper opened a new pull request #590: URL: https://github.com/apache/guacamole-client/pull/590
These changes add client-side support for pass-through of multi-touch events via the Guacamole protocol and supporting objects. They correspond to the server-side changes within apache/guacamole-server#331. This support is implemented through: * A new abstraction, `Guacamole.Touch`, which provides cross-browser touch event handling (similar in purpose and pattern to `Guacamole.Mouse` and `Guacamole.Keyboard`). * A new event system, `Guacamole.Event` and `Guacamole.Event.Target`, which allows for multiple event listeners and consistent control over DOM propagation and default behavior. * A new base class, `Guacamole.Position`, allowing `Guacamole.Mouse.State` and `Guacamole.Touch.State` to share some common code. * Addition of a unit test framework (!!!) and a set of tests for the new `Guacamole.Event` system. I've only leveraged the new event system for the new `Guacamole.Touch` object, but will update the various other components in another set of changes if all this looks OK. The system is designed to be backward compatible with the old `oneventname` handlers. I've also taken this opportunity to: * Simplify the constructor for `Guacamole.Mouse.State`, which is matched by `Guacamole.Touch.State`. * Add optional automatic scaling of mouse and touch events relative to the display scale (rather than require implementations to manually scale state before passing to `sendMouseState()` and `sendTouchState()`). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
