Update comment to reflect the change to the getter.

pull/3300/head
Mitja Bezenšek 2024-03-28 18:24:19 +01:00
rodzic a494c46ed5
commit cac080dd1a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1922,7 +1922,7 @@ export class Editor extends EventEmitter<TLEventMap> {
*/
updateHoveredId() {
if (this.getCameraState() === 'moving') return this
// todo: consider replacing `get hoveredShapeId` with this; it would mean keeping hoveredShapeId in memory rather than in the store and possibly re-computing it more often than necessary
// todo: consider replacing `getHoveredShapeId` with this; it would mean keeping hoveredShapeId in memory rather than in the store and possibly re-computing it more often than necessary
const hitShape = this.getShapeAtPoint(this.inputs.currentPagePoint, {
hitInside: false,
hitLabels: false,