Skip to content

Commit 202a997

Browse files
author
MANEL-PC\Manel
committed
Improved browser compatibility for table scroll
1 parent a54c502 commit 202a997

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traces/table/plot.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ module.exports = function plot(gd, wrappedTraceHolders) {
5757
.classed(c.cn.tableControlView, true)
5858
.style('box-sizing', 'content-box');
5959
if(dynamic) {
60+
let wheelEvent = 'onwheel' in document ? 'wheel' : 'mousewheel'
6061
cvEnter
6162
.on('mousemove', function(d) {
6263
tableControlView
6364
.filter(function(dd) {return d === dd;})
6465
.call(renderScrollbarKit, gd);
6566
})
66-
.on('mousewheel', function(d) {
67+
.on(wheelEvent, function(d) {
6768
if(d.scrollbarState.wheeling) return;
6869
d.scrollbarState.wheeling = true;
6970
var newY = d.scrollY + d3.event.deltaY;

0 commit comments

Comments
 (0)