FIX: attempts to fix a regression making touchs on emojis less reliable (#7383)

This commit is contained in:
Joffrey JAFFEUX 2019-04-16 12:31:33 +02:00 committed by GitHub
parent 3aca070311
commit 5ec19987b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -360,12 +360,16 @@ export default Ember.Component.extend({
.off("touchstart")
.on("touchstart", "button.emoji", touchStartEvent => {
const $this = $(touchStartEvent.currentTarget);
$this.on("touchend", touchEndEvent => {
touchEndEvent.preventDefault();
touchEndEvent.stopPropagation();
handler.bind(self)(touchEndEvent);
$this.off("touchend");
});
$this.on("touchmove", () => $this.off("touchend"));
return false;
});
} else {
$emojisContainer