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:
Jonas Jenwald 2026-06-06 17:26:51 +02:00
parent ae30748956
commit 0b3b101dbc

View File

@ -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.