Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23755 from crdlc/bug-1063398
Browse files Browse the repository at this point in the history
Bug 1063398 - lastTouchStart is null after context menu events in collection and search views r=kgrandon
  • Loading branch information
KevinGrandon committed Sep 5, 2014
2 parents 2185580 + 9aac442 commit 724c841
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared/elements/gaia_grid/js/grid_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@

var lastTouchStart = this.lastTouchStart;

if (!lastTouchStart) {
// This variable is deleted once a contextmenu event is received
return;
}

var touch = e.changedTouches.identifiedTouch(lastTouchStart.identifier);
if (!touch) {
return;
Expand Down

0 comments on commit 724c841

Please sign in to comment.