mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
refactor: removed unnecessary code
This commit is contained in:
parent
47cc04ff53
commit
0f984bd3b3
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user