mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-12 21:21:04 +02:00
Remove the unused GrabToPan.prototype.toggle method
Given that the cursor tools are managed via the `PDFCursorTools` class, of which the `GrabToPan` instance is essentially a (semi) private implementation detail, the `GrabToPan.prototype.toggle` method is completely unused and can thus be removed.
This commit is contained in:
parent
ae30748956
commit
0b3b101dbc
@ -73,14 +73,6 @@ class GrabToPan {
|
||||
}
|
||||
}
|
||||
|
||||
toggle() {
|
||||
if (this.#activateAC) {
|
||||
this.deactivate();
|
||||
} else {
|
||||
this.activate();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to not pan if the target element is clicked.
|
||||
* Override this method to change the default behaviour.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user