Skip to content

Commit

Permalink
css to fix drag effect
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jan 18, 2019
1 parent c9f28d0 commit d74fee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ g .stub > path {
border-color: #68a;
}

#drop_target * {pointer-events: none;}

#info-footer {
position: absolute;
bottom: 0;
Expand Down
5 changes: 1 addition & 4 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {$, $$, toTag, ajax, entryFromKey, report} from './util.js';
// whether or not the user clicked on an Element v. Text Node
Text.prototype.closest = function(...args) {
return this.parentNode.closest && this.parentNode.closest(...args);
}
};

// Used to feature-detect that es6 modules are loading
window.indexLoaded = true;
Expand Down Expand Up @@ -268,9 +268,6 @@ onload = function() {
},

ondragleave: ev => {
// Going to child != leaving
if (ev.relatedTarget.closest('#drop_target')) return;

ev.currentTarget.classList.remove('drag');
ev.preventDefault();
}
Expand Down

0 comments on commit d74fee0

Please sign in to comment.