mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensures we have touches when starting pan event (#7435)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user