paste to center on touch screen

This commit is contained in:
Ryan Di
2025-07-23 18:15:35 +10:00
parent 1489b6a740
commit 691ece340f

View File

@ -3125,7 +3125,7 @@ class App extends React.Component<AppProps, AppState> {
this.addElementsFromPasteOrLibrary({ this.addElementsFromPasteOrLibrary({
elements, elements,
files: data.files || null, files: data.files || null,
position: "cursor", position: this.isMobileOrTablet() ? "center" : "cursor",
retainSeed: isPlainPaste, retainSeed: isPlainPaste,
}); });
} else if (data.text) { } else if (data.text) {
@ -3143,7 +3143,7 @@ class App extends React.Component<AppProps, AppState> {
this.addElementsFromPasteOrLibrary({ this.addElementsFromPasteOrLibrary({
elements, elements,
files, files,
position: "cursor", position: this.isMobileOrTablet() ? "center" : "cursor",
}); });
return; return;