mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: Apple Pen missing strokes (#4705)
This commit is contained in:
parent
e68abdbab4
commit
08115ef311
1 changed files with 4 additions and 1 deletions
|
@ -1273,6 +1273,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
}
|
||||
|
||||
private onTapStart = (event: TouchEvent) => {
|
||||
// fix for Apple Pencil Scribble
|
||||
event.preventDefault();
|
||||
|
||||
if (!didTapTwice) {
|
||||
didTapTwice = true;
|
||||
clearTimeout(tappedTwiceTimer);
|
||||
|
@ -1294,7 +1297,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
didTapTwice = false;
|
||||
clearTimeout(tappedTwiceTimer);
|
||||
}
|
||||
event.preventDefault();
|
||||
|
||||
if (event.touches.length === 2) {
|
||||
this.setState({
|
||||
selectedElementIds: {},
|
||||
|
|
Loading…
Add table
Reference in a new issue