mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-22 14:01:54 +03:00
points cannot be null
This commit is contained in:
1 parent
2df323a5c3
commit
a17090f455
1 file changed
+1
-1
@@ -9107,7 +9107,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
newElement &&
|
||||
!multiElement
|
||||
) {
|
||||
if (this.device.isTouchScreen && newElement.points.length > 1) {
|
||||
if (this.device.isTouchScreen && newElement!.points.length > 1) {
|
||||
const FIXED_DELTA_X = Math.min(
|
||||
(this.state.width * 0.7) / this.state.zoom.value,
|
||||
100,
|
||||
|
||||
Reference in new issue
Block a user