mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:03:15 +08:00
FIX: ensures we have touches when starting pan event (#7435)
This commit is contained in:
parent
d8ff94ecaa
commit
e386fa7674
|
@ -24,7 +24,7 @@ export default Ember.Mixin.create({
|
|||
addTouchListeners($element) {
|
||||
if (this.site.mobileView) {
|
||||
$element
|
||||
.on("touchstart", e => this._panStart(e.touches[0]))
|
||||
.on("touchstart", e => e.touches && this._panStart(e.touches[0]))
|
||||
.on("touchmove", e => {
|
||||
const touchEvent = e.touches[0];
|
||||
touchEvent.type = "pointermove";
|
||||
|
|
Loading…
Reference in New Issue
Block a user