diff --git a/NEWS.md b/NEWS.md index 9a942b3f662..1f29c947ae5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,11 @@ # News ## master -- Added the `stephist` plotting function [#2408](https://github.com/JuliaPlots/Makie.jl/pull/2408). +- Added the `stephist` plotting function [#2408](https://github.com/JuliaPlots/Makie.jl/pull/2408). - Fixed an issue where `poly` plots with `Vector{<: MultiPolygon}` inputs with per-polygon color were mistakenly rendered as meshes using CairoMakie. [#2590](https://github.com/MakieOrg/Makie.jl/pulls/2478) - Fixed a small typo which caused an error in the `Stepper` constructor. [#2600](https://github.com/MakieOrg/Makie.jl/pulls/2478) +- Fixed rectangle zoom for nonlinear axes [#2674](https://github.com/MakieOrg/Makie.jl/pull/2674) ## v0.19.1 diff --git a/src/makielayout/interactions.jl b/src/makielayout/interactions.jl index 537f114a552..a9b79c8181a 100644 --- a/src/makielayout/interactions.jl +++ b/src/makielayout/interactions.jl @@ -125,8 +125,9 @@ end function _selection_vertices(ax_scene, outer, inner) _clamp(p, plow, phigh) = Point2f(clamp(p[1], plow[1], phigh[1]), clamp(p[2], plow[2], phigh[2])) proj(point) = project(ax_scene, point) .+ minimum(ax_scene.px_area[]) - outer = positivize(outer) - inner = positivize(inner) + transf = Makie.transform_func(ax_scene) + outer = positivize(Makie.apply_transform(transf, outer)) + inner = positivize(Makie.apply_transform(transf, inner)) obl = bottomleft(outer) obr = bottomright(outer)