michitaro / vue-window

Window component for vue2
https://github.com/michitaro/vue-window
MIT License
296 stars 59 forks source link

Left + Right Click throws unbind error #23

Open notchris opened 4 years ago

notchris commented 4 years ago

OS: MacOS Catalina Browser: Google Chrome Version 80.0.3987.149 (Official Build) (64-bit)

Description: When dragging a window, if you left & right click at the same time, or quickly after another, an 'unbind' error is thrown. This has been tested locally and on the demo provided.

Error:

o.unbindUp is not a function

Suggested fix: Check for value of o before running the bind events to make sure context was not lost