mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-20 07:03:58 +03:00
refactor: removed unnecessary code
This commit is contained in:
parent
47cc04ff53
commit
0f984bd3b3
@ -1400,20 +1400,8 @@
|
|||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
removeContact: function() {
|
removeContact: function() {
|
||||||
if (
|
if ( this.contacts > 0 ) {
|
||||||
(this.type === "mouse" ||
|
|
||||||
this.type === "pen" ||
|
|
||||||
this.type === "touch") &&
|
|
||||||
this.contacts > 0
|
|
||||||
) {
|
|
||||||
--this.contacts;
|
--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