TableHeadFixer icon indicating copy to clipboard operation
TableHeadFixer copied to clipboard

Fluctuate header while scrolling table

Open ais1940b opened this issue 9 years ago • 5 comments

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

ais1940b avatar Feb 08 '16 10:02 ais1940b

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

Manjunath1847 avatar Mar 02 '16 11:03 Manjunath1847

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

ghost avatar Mar 11 '16 15:03 ghost

Any fix for this issue, very urgent!!

SainathBommisetty avatar Jun 22 '16 07:06 SainathBommisetty

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

dhruvJaiswal avatar Sep 21 '16 05:09 dhruvJaiswal

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

                });
                
            }

anand81192 avatar Mar 24 '18 11:03 anand81192