From 0f984bd3b354f9e311438b5720bb1e1fd20b44f6 Mon Sep 17 00:00:00 2001 From: Ronny Mikalsen Date: Wed, 2 Mar 2022 10:10:30 +0100 Subject: [PATCH] refactor: removed unnecessary code --- src/mousetracker.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index 0a8c36c1..4e96d23b 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -1400,20 +1400,8 @@ * @function */ removeContact: function() { - if ( - (this.type === "mouse" || - this.type === "pen" || - this.type === "touch") && - this.contacts > 0 - ) { + if ( this.contacts > 0 ) { --this.contacts; - - if (this.contacts < 0) { - $.console.warn( - "GesturePointList.removeContact() Implausible contacts value" - ); - this.contacts = 0; - } } } };