Просмотр исходного кода

make autoscroll work while selecting

Adam Shaw 11 лет назад
Родитель
Сommit
8a70e0e639
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/common/Grid.js

+ 1 - 0
src/common/Grid.js

@@ -95,6 +95,7 @@ $.extend(Grid.prototype, {
 		// if 'selectable' is enabled, this listener also detects selections.
 		var dragListener = new DragListener(this.coordMap, {
 			//distance: 5, // needs more work if we want dayClick to fire correctly
+			scroll: view.opt('dragScroll'),
 			dragStart: function() {
 				view.unselect(); // since we could be rendering a new selection, we want to clear any old one
 			},