FIX: attempts to fix a regression making touchs on emojis less reliable (#7383)
This commit is contained in:
parent
3aca070311
commit
5ec19987b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue