Skip to content

Commit

Permalink
helps to avoid state overlap for pan/select
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Jan 9, 2015
1 parent 4294a16 commit 4327f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/renderer.canvas.drawing-redraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@

setContextTransform( context );

if (data.select[4] == 1) {
if( data.select[4] == 1 && r.hoverData.selecting ){
var zoom = data.cy.zoom();
var borderWidth = coreStyle['selection-box-border-width'].value / zoom;

Expand Down Expand Up @@ -484,7 +484,7 @@
}
}

if( data.bgActivePosistion ){
if( data.bgActivePosistion && !r.hoverData.selecting ){
var zoom = data.cy.zoom();
var pos = data.bgActivePosistion;

Expand Down

0 comments on commit 4327f51

Please sign in to comment.