Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubberband zoom offset #141

Closed
Cody-G opened this issue Mar 13, 2018 · 2 comments
Closed

Rubberband zoom offset #141

Cody-G opened this issue Mar 13, 2018 · 2 comments

Comments

@Cody-G
Copy link
Contributor

Cody-G commented Mar 13, 2018

I'm pretty sure this is a problem upstream of ImageView. When I draw a rectangle for zooming in on a region of an image, the rectangle is offset from the point of my click. The offset is smallest when I drag in the upper left portion of the canvas, and it grows as I move closer to the bottom right. To me this would suggest some improper scaling of user and device coordinates. The bizarre thing is that this is only happening on one of my two machines, even though both of them have the same julia packages and GTK libraries installed. The only other clue I have is that the misbehaving machine also fails some GtkReactive tests related to coordinates (see JuliaGizmos/GtkReactive.jl#67). The machine does however pass all of the Gtk.jl tests.

@Cody-G
Copy link
Contributor Author

Cody-G commented Mar 13, 2018

Downgrading Cairo to v0.4.0 works around the issue. The inspiration was from here, though that issue doesn't seem closely related.

@timholy
Copy link
Member

timholy commented Sep 4, 2018

Fixed by JuliaGraphics/Cairo.jl#254

@timholy timholy closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants