Skip to content

Commit

Permalink
Fix hover issue when hovering over stacked items
Browse files Browse the repository at this point in the history
  • Loading branch information
Alecaddd committed Oct 24, 2018
1 parent ec97c37 commit c26680d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ResponsiveCanvas.vala
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public class Phi.ResponsiveCanvas : Goo.Canvas {
}

private void motion_hover_event (Gdk.EventMotion event) {
hovered_item = get_item_at (event.x / get_scale (), event.y / get_scale (), false);
hovered_item = get_item_at (event.x / get_scale (), event.y / get_scale (), true);

if (!(hovered_item is Goo.CanvasItem)) {
remove_hover_effect ();
Expand Down Expand Up @@ -188,6 +188,8 @@ public class Phi.ResponsiveCanvas : Goo.Canvas {
"line-width", line_width,
"stroke-color", "#41c9fd"
);

hover_effect.can_focus = false;
}

private void remove_hover_effect () {
Expand Down

0 comments on commit c26680d

Please sign in to comment.