Fix scene editing for device pixel ratios ≠ 1

Fixes #177