Skip to content

Pointer events are not bound correctly #27

@paulkaplan

Description

@paulkaplan

There is a bug in the code which decides which events to bind (pointer, touch, mouse). It uses user-agent sniffing to intentionally not bind mouse events for things that look like Android, which is wrong because android can support a plugged in mouse. Also, the way it decides to use pointer events (which eliminates the need for user-agent sniffing) does not work, navigator.pointerEnabled is no longer supported.

https://github.com/paperjs/paper.js/blob/develop/src/view/View.js#L1070-L1090

This causes an issue where (a) you are not able to use an android device with a mouse and (b) if you embed the paint editor in an android webview, then use it on a chromebook for example, the trackpad does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions