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")
|
.off("touchstart")
|
||||||
.on("touchstart", "button.emoji", touchStartEvent => {
|
.on("touchstart", "button.emoji", touchStartEvent => {
|
||||||
const $this = $(touchStartEvent.currentTarget);
|
const $this = $(touchStartEvent.currentTarget);
|
||||||
|
|
||||||
$this.on("touchend", touchEndEvent => {
|
$this.on("touchend", touchEndEvent => {
|
||||||
|
touchEndEvent.preventDefault();
|
||||||
|
touchEndEvent.stopPropagation();
|
||||||
|
|
||||||
handler.bind(self)(touchEndEvent);
|
handler.bind(self)(touchEndEvent);
|
||||||
$this.off("touchend");
|
$this.off("touchend");
|
||||||
});
|
});
|
||||||
|
|
||||||
$this.on("touchmove", () => $this.off("touchend"));
|
$this.on("touchmove", () => $this.off("touchend"));
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$emojisContainer
|
$emojisContainer
|
||||||
|
|
Loading…
Reference in New Issue