googlearchive / polymer-gestures

84 stars 27 forks source link

Prevent "ghost click" phenonenoms #73

Closed dfreedm closed 10 years ago

dfreedm commented 10 years ago

Ghost clicks occur when an element is removed before the 300ms delayed click event is fired, but the click event is still sent. This click event will be sent to whatever is now on top at that coordinate.

dfreedm commented 10 years ago

@sorvell @frankiefu PTAL

dfreedm commented 10 years ago

@sorvell test added

sorvell commented 10 years ago

LGTM

steida commented 10 years ago

preventDefault is not enough, if new shown element is form field. Input will got focus. The only reliable solutions is temporaly show transparent div with very high z-index.