mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
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
Block a user