File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 162162 // Scroll the render container viewport when the mousewheel is used
163163 $elm . bind ( 'wheel mousewheel DomMouseScroll MozMousePixelScroll' , function ( evt ) {
164164 // use wheelDeltaY
165- evt . preventDefault ( ) ;
166165
167166 var newEvent = GridUtil . normalizeWheelEvent ( evt ) ;
168167
192191
193192 args . x = { percentage : scrollXPercentage , pixels : scrollXAmount } ;
194193 }
195-
194+
195+ // Let the parent container scroll if the grid is already at the top/bottom
196+ if ( ( args . y . percentage !== 0 && args . y . percentage !== 1 ) || ( args . x . percentage !== 0 && args . x . percentage !== 1 ) ) {
197+ evt . preventDefault ( ) ;
198+ }
199+
196200 uiGridCtrl . fireScrollingEvent ( args ) ;
197201 } ) ;
198-
199202
200203 var startY = 0 ,
201204 startX = 0 ,
You can’t perform that action at this time.
0 commit comments