export function onLeftClick(mouseDownHandler) { return function onMouseDown(evt, ...args) { if (evt.type === 'mousedown' && evt.button === 0) { mouseDownHandler.call(this, evt, ...args) } } }