Compare commits

...

2 Commits

Author SHA1 Message Date
zsviczian
a17090f455
points cannot be null 2025-08-07 21:39:50 +02:00
zsviczian
2df323a5c3
Apply fixed delta only if points.length > 1 2025-08-07 21:28:30 +02:00

View File

@ -9107,7 +9107,7 @@ class App extends React.Component<AppProps, AppState> {
newElement && newElement &&
!multiElement !multiElement
) { ) {
if (this.device.isTouchScreen) { if (this.device.isTouchScreen && newElement!.points.length > 1) {
const FIXED_DELTA_X = Math.min( const FIXED_DELTA_X = Math.min(
(this.state.width * 0.7) / this.state.zoom.value, (this.state.width * 0.7) / this.state.zoom.value,
100, 100,