kopia lustrzana https://github.com/Tldraw/Tldraw
only buffer pointer events
rodzic
d4a162d1ad
commit
37a848787b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue