Skip to content

Commit beaa586

Browse files
authored
fix(selector): cell selector throws error in console when no scroll (#338)
* fix(selector): cell selector throws error in console when no scroll - the error is not showing up if user tried scrolling at first, the small issue is related to the fact that 2 variables scrollTop, scrollLeft were not initialized * fix(selector): cell selection on frozen area incorrect after scrolling
1 parent aa54eae commit beaa586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/slick.cellrangeselector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@
9999
_grid.focus();
100100

101101
var startX = dd.startX - $(_canvas).offset().left;
102-
if (_gridOptions.frozenColumn >= 0) {
102+
if (_gridOptions.frozenColumn >= 0 && _isRightCanvas) {
103103
startX += _scrollLeft;
104104
}
105105

106106
var startY = dd.startY - $(_canvas).offset().top;
107-
if (_gridOptions.frozenRow >= 0) {
107+
if (_gridOptions.frozenRow >= 0 && _isBottomCanvas) {
108108
startY += _scrollTop;
109109
}
110110

0 commit comments

Comments
 (0)