Skip to content

Commit

Permalink
remove another .px_area
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Dec 5, 2023
1 parent e962b85 commit 19cc6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function scene_interaction(update_scene,

# Check if pixel position pos sits within the scene
function _inscene(scene, pos)
area = scene.px_area[]
area = scene.viewport[]
pos[1] > area.origin[1] &&
pos[1] < area.origin[1] + area.widths[1] &&
pos[2] > area.origin[2] &&
Expand Down

0 comments on commit 19cc6bb

Please sign in to comment.