Skip to content

Commit

Permalink
fix(selection): fixed #296
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Feb 12, 2019
1 parent ee3b707 commit 1f9b6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/selection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ validMouseup$$.pipe(
// Same selection. This could be caused by other widget on the page
// that uses preventDefault which stops selection being cleared when clicked.
// Ignore it so that the panel won't follow.
return (
return Boolean(
clickPeriodCount < 2 &&
oldVal[1].text &&
oldVal[1].text === newVal[1].text &&
oldVal[1].context &&
oldVal[1].context === newVal[1].context
)
})
Expand Down

0 comments on commit 1f9b6a6

Please sign in to comment.