Skip to content

Commit 63eb336

Browse files
Small fixes
1 parent c0c64e9 commit 63eb336

File tree

1 file changed

+3
-1
lines changed
  • packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel

1 file changed

+3
-1
lines changed

packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/mouseEvents.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export function mouseEventsModelFactory(
236236
const edge = isMouseOnFeatureEdge(mousePosition, feature, self)
237237
if (edge) {
238238
event.stopPropagation()
239-
self.startDrag(mousePosition, feature, edge)
239+
self.startDrag(mousePosition, feature, edge, true)
240240
return
241241
}
242242
}
@@ -260,6 +260,8 @@ export function mouseEventsModelFactory(
260260
}
261261
if (topFeature) {
262262
self.setHoveredFeature({ feature: topFeature, bp: mousePosition.bp })
263+
} else {
264+
self.setHoveredFeature()
263265
}
264266
for (const feature of features.toReversed()) {
265267
const glyph = self.getGlyph(feature)

0 commit comments

Comments
 (0)