File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Change log
49
49
- fix [ 1540] ( https://github.com/gridstack/gridstack.js/issues/1540 ) Safari H5 drag&drop fixed
50
50
- fix [ 1545] ( https://github.com/gridstack/gridstack.js/issues/1545 ) ` disableMove() ` correctly prevents drag later (remove events and draggable attribute)
51
51
- fix [ 1546] ( https://github.com/gridstack/gridstack.js/issues/1546 ) resize no longer delayed, which caused race conditions errors
52
+ - fix [ 1001] ( https://github.com/gridstack/gridstack.js/issues/1001 ) resizing near bottom/top needs to auto-scroll/. thanks [ @hbcarlos ] ( https://github.com/hbcarlos ) !
52
53
53
54
## 3.1.2 (2020-12-7)
54
55
Original file line number Diff line number Diff line change @@ -328,14 +328,12 @@ export class Utils {
328
328
}
329
329
}
330
330
331
- /**
332
- * @internal
333
- *
334
- * Function used to scroll the page.
335
- *
331
+ /**
332
+ * @internal Function used to scroll the page.
333
+ *
336
334
* @param event `MouseEvent` that triggers the resize
337
335
* @param el `HTMLElement` that's being resized
338
- * @param distance Distance to scroll
336
+ * @param distance Distance from the V edges to start scrolling
339
337
*/
340
338
static updateScrollResize ( event : MouseEvent , el : HTMLElement , distance : number ) : void {
341
339
const scrollEl = this . getScrollParent ( el ) ;
@@ -348,7 +346,6 @@ export class Utils {
348
346
// This also can be done with a timeout to keep scrolling while the mouse is
349
347
// in the scrolling zone. (will have smoother behavior)
350
348
scrollEl . scrollBy ( { behavior : 'smooth' , top : event . clientY - distance } ) ;
351
-
352
349
} else if ( bottom ) {
353
350
scrollEl . scrollBy ( { behavior : 'smooth' , top : distance - ( height - event . clientY ) } ) ;
354
351
}
You can’t perform that action at this time.
0 commit comments