6754221d2aa78c8eb7fb54358988eb54f8ae6e81b93e1b88b1eb3a61efa591c73f5404b95fe42038c466ca1b1bc6293c04cc0c542350798532d90afa984ff5-exec 210 B

1234567
  1. export function onLeftClick(mouseDownHandler) {
  2. return function onMouseDown(evt, ...args) {
  3. if (evt.type === 'mousedown' && evt.button === 0) {
  4. mouseDownHandler.call(this, evt, ...args)
  5. }
  6. }
  7. }