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