Skip to content

Commit

Permalink
Make selecting vertices+edges on touch screens easier
Browse files Browse the repository at this point in the history
Closes #2153
  • Loading branch information
JannisX11 committed Jan 2, 2024
1 parent 52139ea commit 2a2134c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/preview/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,7 @@ Preview.split_screen = {

Blockbench.on('update_camera_position', e => {
let scale = Preview.selected.calculateControlScale(Transformer.position) || 0.8;
if (Blockbench.isTouch) scale *= 1.5;
Preview.all.forEach(preview => {
if (preview.canvas.isConnected) {
preview.raycaster.params.Points.threshold = scale * 0.8;
Expand Down

0 comments on commit 2a2134c

Please sign in to comment.