Author Topic: pqGrid 5.0 lost ability to lock scrolling  (Read 1695 times)

jjestrellaa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 15
    • View Profile
pqGrid 5.0 lost ability to lock scrolling
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: pqGrid 5.0 lost ability to lock scrolling
« Reply #1 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.
« Last Edit: May 01, 2018, 10:40:49 pm by paramquery »