Fix code tests

This commit is contained in:
Quincy Morgan
2020-05-28 11:45:49 -04:00
parent 79ceb96758
commit 2264e4a6d7
2 changed files with 6 additions and 11 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ export function behaviorHover(context) {
function pointerover() {
// ignore mouse hovers with buttons pressed unless dragging
if (!context.mode().id.includes('drag') &&
if (context.mode().id.indexOf('drag') === -1 &&
(!d3_event.pointerType || d3_event.pointerType === 'mouse') &&
d3_event.buttons) return;