문제

I may be dumb, but can't find any info about it.

If I want to attach a JavaScript function to the event for a mouse up I do it this way:

<div id="div1" on-mouseup={{menuMouseUp}}></div>

What are the key words for touch events? Is it on-touch-start, on-touchstart.. ? Or it's not supported and we need to use pointers: http://www.polymer-project.org/platform/pointer-events.html

I'm trying to test it on Ipad and no luck at all. Cheers!

도움이 되었습니까?

해결책

Today, Polymer implements a set of high-level events that unify a few different underlying event models.

For example, when using Polymer, instead of click you can use tap. Instead of mouseup you can use up. The Polymer equivalents work for mouse or touch.

There is some detailed information here:

https://groups.google.com/forum/#!msg/polymer-dev/ba4aDyOozm8/Hw0GJLvcOCMJ

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top