lai32290/TableHeadFixer

Fluctuate header while scrolling table

Opened this issue · 5 comments

this plugin working fine in Firefox and Chrome but in Safari Browser when table is scrolled fluctuate Table header

I had used this plugin. Working fine in Chrome and firefox, but fluctuate in IE 11. Can you please provide the fix for this.

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

Any fix for this issue, very urgent!!

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

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;
                    }

                });
                
            }