only buffer pointer events

only-buffer-pointer-events
Steve Ruiz 2024-04-03 13:43:57 +01:00
rodzic d4a162d1ad
commit 37a848787b
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -8229,7 +8229,6 @@ export class Editor extends EventEmitter<TLEventMap> {
*/
cancel(): this {
this.dispatch({ type: 'misc', name: 'cancel' })
this._tickManager.tick()
return this
}
@ -8245,7 +8244,6 @@ export class Editor extends EventEmitter<TLEventMap> {
*/
interrupt(): this {
this.dispatch({ type: 'misc', name: 'interrupt' })
this._tickManager.tick()
return this
}
@ -8367,6 +8365,9 @@ export class Editor extends EventEmitter<TLEventMap> {
*/
dispatch = (info: TLEventInfo): this => {
this._pendingEventsForNextTick.push(info)
if (info.type !== 'pointer') {
this._flushEventsForTick(0)
}
return this
}

Wyświetl plik

@ -124,7 +124,7 @@ export function getNoteShapeForAdjacentPosition(
}
}
editor.complete()
// editor.complete()
editor.mark()
// If we didn't find any in that position, then create a new one