Skip to content

Commit

Permalink
hotfix for bad behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Germaneri committed Jan 12, 2017
1 parent f2636be commit c68b3f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@
scrollBox.height = height - headerCellHeight - headerCellBorder;
scrollBox.top = headerCellHeight + headerCellBorder;
scrollBox.left = headerCellWidth;
scrollBox.scrollHeight = scrollHeight - headerCellBorder + getHeaderCellHeight() + style.scrollBarWidth - height;
scrollBox.scrollHeight = scrollHeight - headerCellBorder + getHeaderCellHeight() + style.scrollBarWidth;
scrollBox.scrollWidth = scrollWidth - style.scrollBarWidth
+ getHeaderCellWidth() + (style.scrollBarWidth * 2) - width;
scrollBox.scrollBarHeight = 15;
Expand Down Expand Up @@ -2193,6 +2193,7 @@
if (!hasFocus) { return; }
scrollBox.scrollTop -= e.wheelDeltaY;
scrollBox.scrollLeft -= e.wheelDeltaX;
e.preventDefault();
}
function copy(e) {
var rows = [], sData = getSelectedData();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canvas-datagrid",
"version": "0.9.24",
"version": "0.9.25",
"description": "Canvas based data grid",
"main": "./lib/main.js",
"scripts": {
Expand Down

0 comments on commit c68b3f8

Please sign in to comment.