File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -256,12 +256,13 @@ var myPieChart = new Chart(ctx, {
256
256
// Display, position, and set styles for font
257
257
tooltipEl .style .opacity = 1 ;
258
258
tooltipEl .style .position = ' absolute' ;
259
- tooltipEl .style .left = position .left + tooltipModel .caretX + ' px' ;
260
- tooltipEl .style .top = position .top + tooltipModel .caretY + ' px' ;
259
+ tooltipEl .style .left = position .left + window . pageXOffset + tooltipModel .caretX + ' px' ;
260
+ tooltipEl .style .top = position .top + window . pageYOffset + tooltipModel .caretY + ' px' ;
261
261
tooltipEl .style .fontFamily = tooltipModel ._bodyFontFamily ;
262
262
tooltipEl .style .fontSize = tooltipModel .bodyFontSize + ' px' ;
263
263
tooltipEl .style .fontStyle = tooltipModel ._bodyFontStyle ;
264
264
tooltipEl .style .padding = tooltipModel .yPadding + ' px ' + tooltipModel .xPadding + ' px' ;
265
+ tooltipEl .style .pointerEvents = ' none' ;
265
266
}
266
267
}
267
268
}
You can’t perform that action at this time.
0 commit comments