Skip to content

Commit

Permalink
Fixing issue where frame would not select and move to top on resize. …
Browse files Browse the repository at this point in the history
…Addresses #780
  • Loading branch information
alexsielicki committed Nov 15, 2017
1 parent f439f00 commit 2776c07
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,12 +1352,22 @@ define("slycat-parameter-image-scatterplot", ["slycat-server-root", "d3", "URI",
// Add resizing class to scatterplot to use CSS to keep cursor as arrow while resizing
d3.select("#scatterplot").classed("resizing", true);

if (frame.classed("hover-image")) {
if(frame.classed("hover-image"))
{
self.opening_image = null;
clear_hover_timer(self);
frame.classed("hover-image", false).classed("open-image", true);
image.image_class = "open-image";
}
else if(!frame.classed("selected"))
{
$(this.closest(".image-frame")).detach().appendTo(self.media_layer.node());
self.current_frame = null;
$(".open-image").removeClass("selected");
frame.classed("selected", true);
self.current_frame = Number(frame.attr("data-index"));
self._sync_open_images();
}

d3.event.sourceEvent.stopPropagation();
}),
Expand Down

0 comments on commit 2776c07

Please sign in to comment.