After updating from Tauri 2.0.6 to 2.1.0, toLogical no longer produces a correct LogicalPosition object when using the JS API. y now always has the same value as x. The same happens when converting PhysicalPosition to LogicalPosition using toPhysical. For toLogical, this is a regression.
Describe the bug
After updating from Tauri 2.0.6 to 2.1.0,
toLogical
no longer produces a correctLogicalPosition
object when using the JS API.y
now always has the same value asx
. The same happens when convertingPhysicalPosition
toLogicalPosition
usingtoPhysical
. FortoLogical
, this is a regression.Reproduction
Result:
LogicalPosition(10, 10)
PhysicalPosition(10, 10)
Expected behavior
toLogical
/toPhysical
should produce aLogicalPosition
/PhysicalPosition
object with a correcty
value.Full
tauri info
outputStack trace
No response
Additional context
https://github.com/tauri-apps/tauri/blob/5c4b830843ab085f8ff9db9e08d832223b027e4e/packages/api/src/dpi.ts#L312