TableHeadFixer icon indicating copy to clipboard operation
TableHeadFixer copied to clipboard

This could not work in IE as well as it was in Chrome or firefox

Open kaxiaoche opened this issue 10 years ago • 4 comments

Hi @lai32290 ,

I found a little bug in your TableHeadFixer.

It works perfect in Chrome and firefox.

but The fixing head or the fixing column will slight shaking while I‘m dragging the scrollbar in IE.

looking forward to your reply.

: - )

kaxiaoche avatar Nov 09 '15 11:11 kaxiaoche

Hello,

Have you found the solution for this?

Best Regards

ghost avatar Mar 14 '16 09:03 ghost

try this put this code inside parent.on()

anand81192 avatar Mar 24 '18 11:03 anand81192

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

Did any one solved this issue. I have tried above solution provide by @anand81192. But that is also not working.

Avinash-Reddy95 avatar Apr 20 '19 16:04 Avinash-Reddy95