🌰 added mobile events in the componentManager 🎪

This commit is contained in:
Matei Adriel 2019-06-04 18:43:44 +00:00
parent 4e8fb18212
commit b2a8e3bf96

View file

@ -422,7 +422,9 @@ All you work will be lost!`
${component.pinsSvg(10, 20, "output")} ${component.pinsSvg(10, 20, "output")}
<g @mousedown=${ (e: MouseEvent) => component.handleClick(e)} <g @mousedown=${ (e: MouseEvent) => component.handleClick(e)}
@mouseup=${mouseupHandler}> @touchstart=${(e: MouseEvent) => component.handleClick(e)}
@mouseup=${mouseupHandler}
@touchend=${mouseupHandler}>
<rect width=${ subscribe(component.width)} <rect width=${ subscribe(component.width)}
height=${ subscribe(component.height)} height=${ subscribe(component.height)}
x=${ subscribe(component.x)} x=${ subscribe(component.x)}