ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jjestrellaa on May 01, 2018, 10:03:16 pm

Title: pqGrid 5.0 lost ability to lock scrolling
Post by: jjestrellaa on May 01, 2018, 10:03:16 pm
What's the new method to lock scrolling? Now we have the events for scrolling, but even with a timeout of 1ms we see a jerking motion when resetting the scrolling to the current position.
Title: Re: pqGrid 5.0 lost ability to lock scrolling
Post by: paramvir on May 01, 2018, 10:38:56 pm
Scrolling can be disabled by resetting it to initial position in scroll event.

Code: [Select]
grid.on("scroll", function(){
   this.scrollXY(0,0);
});

Since there is no beforeScroll event and asynchronous nature of native scrolling, that brief flickering can't be avoided.