Skip to content

Commit eb347bb

Browse files
committed
enhancement(Tooltip) fixes unreachable code fragment #506
1 parent d0e84e0 commit eb347bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tooltip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ export class Tooltip extends Component<TooltipOptions> {
230230
tooltipWidth = tooltip.offsetWidth,
231231
margin = this.options.margin;
232232

233-
(this.xMovement = 0), (this.yMovement = 0);
233+
this.xMovement = 0;
234+
this.yMovement = 0;
234235

235236
let targetTop = origin.getBoundingClientRect().top + Utils.getDocumentScrollTop();
236237
let targetLeft = origin.getBoundingClientRect().left + Utils.getDocumentScrollLeft();

0 commit comments

Comments
 (0)