Skip to content

Commit

Permalink
Mouseover events fire on neighbouring edges covered by nodes when the…
Browse files Browse the repository at this point in the history
… edge is assigned with 'top' for 'z-compound-depth' style #2171
  • Loading branch information
maxkfranz committed Oct 23, 2018
1 parent 4c24e91 commit 81d35a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extensions/renderer/base/coord-ele-math/coords.js
Expand Up @@ -114,7 +114,10 @@ BRp.findNearestElements = function( x, y, interactiveElementsOnly, isTouch ){
if( ele.isEdge() && ( sqDist == null || sqDist < minSqDist ) ){
if( nearEdge ){ // then replace existing edge
// can replace only if same z-index
if( nearEdge.pstyle( 'z-index' ).value === ele.pstyle('z-index').value ){
if(
nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value
&& nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value
){
for( var i = 0; i < near.length; i++ ){
if( near[i].isEdge() ){
near[i] = ele;
Expand Down

0 comments on commit 81d35a4

Please sign in to comment.