Skip to content

Commit

Permalink
When in an active touch cycle in the renderer and neither panning nor…
Browse files Browse the repository at this point in the history
… node-dragging is active, remove the active background indicator.

Ref : The active background indicator remains when making a non-pan touch swipe #2156
  • Loading branch information
maxkfranz committed Jul 17, 2018
1 parent f634fe8 commit 97eb547
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/extensions/renderer/base/load-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -1735,8 +1735,14 @@ BRp.load = function(){
for( var j = 0; j < now.length; j++ ){ earlier[ j ] = now[ j ]; }
//r.redraw();

}, false );
// the active bg indicator should be removed when making a swipe that is neither for dragging nodes or panning
if( capture && e.touches.length > 0 && !r.hoverData.draggingEles && !r.swipePanning && r.data.bgActivePosistion != null ){
r.data.bgActivePosistion = undefined;
r.redrawHint( 'select', true );
r.redraw();
}

}, false );
var touchcancelHandler;
r.registerBinding( window, 'touchcancel', touchcancelHandler = function( e ){ // eslint-disable-line no-undef
var start = r.touchData.start;
Expand Down

0 comments on commit 97eb547

Please sign in to comment.