File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ export default class DraggableCore extends React.Component {
336
336
337
337
// When the user scrolls, adjust internal state so the draggable moves along the page properly.
338
338
// This only fires when a drag is active.
339
- handleScroll = ( ) => {
339
+ handleScroll = ( e ) => {
340
340
let s = this . state , x = document . body . scrollLeft , y = document . body . scrollTop ;
341
341
342
342
// Create the usual event, but make the scroll offset our deltas.
@@ -349,7 +349,7 @@ export default class DraggableCore extends React.Component {
349
349
lastY : s . lastY + coreEvent . deltaY
350
350
} ) ;
351
351
352
- this . props . onDrag ( coreEvent ) ;
352
+ this . props . onDrag ( e , coreEvent ) ;
353
353
} ;
354
354
355
355
// On mousedown, consider the drag started.
You can’t perform that action at this time.
0 commit comments