Fluctuate header while scrolling table
Opened this issue · 5 comments
ais1940b commented
this plugin working fine in Firefox and Chrome but in Safari Browser when table is scrolled fluctuate Table header
Manjunath1847 commented
I had used this plugin. Working fine in Chrome and firefox, but fluctuate in IE 11. Can you please provide the fix for this.
Deleted user commented
Hello,
Thank you very much for the plugin, it solved my problems in chrome but I also have this problem in I.E, there's any solution for that?
Best Regards
SainathBommisetty commented
Any fix for this issue, very urgent!!
dhruvJaiswal commented
I am using this in one of my view but it is not working properly in IE please help me out if you all are having solution to it
anand81192 commented
try this code inside , it worked for me
if (navigator.userAgent.match(/Trident/7./)) { // if IE
function handle(delta) {
parent.stop().animate({
scrollTop: parent.scrollTop() - (distance * delta)
}, time);
}
parent.on("mousewheel", function (event) {
if (event.originalEvent.wheelDelta) delta = event.originalEvent.wheelDelta / 120;
else if (event.originalEvent.detail) delta = -event.originalEvent.detail / 3;
handle(delta);
if (event.preventDefault) event.preventDefault();
event.returnValue = false;
});
parent.on("keydown", function (e) {
switch (e.which) {
//up
case 38:
e.preventDefault();
parent.stop().animate({
scrollTop: parent.scrollTop() - distance
}, time);
break;
//down
case 40:
e.preventDefault();
parent.stop().animate({
scrollTop: parent.scrollTop() + distance
}, time);
break;
}
});
}