@1771technologies/lytenyte-pro 1.0.11 → 1.0.12-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,7 +117,8 @@ export function CellSelectionDriver() {
117
117
  const pointerDown = (event) => {
118
118
  if (!isNormalClick(event)) {
119
119
  document.removeEventListener("pointermove", pointerMove);
120
- event.preventDefault();
120
+ // Prevent the default for the context menu, otherwise the cell right clicked will be focused,
121
+ // resulting in the cell selection changing. if (event.button == 2) event.preventDefault();
121
122
  return;
122
123
  }
123
124
  isAdditive = isMultiRange && (event.ctrlKey || event.metaKey);
@@ -164,6 +165,9 @@ export function CellSelectionDriver() {
164
165
  // We need to prevent the default otherwise the cell to go to will be
165
166
  // focused. This leads to awkward behavior around the cell selection pivot
166
167
  event.preventDefault();
168
+ document.addEventListener("mousemove", pointerMove);
169
+ document.addEventListener("contextmenu", pointerUp);
170
+ document.addEventListener("pointerup", pointerUp);
167
171
  return;
168
172
  }
169
173
  // We need to prevent the default for multi
@@ -391,14 +391,12 @@ export function makeLyteNyte(p) {
391
391
  .filter((x) => x != null)
392
392
  .map((x) => [x, api.rowByIndex(x)]));
393
393
  const headerHeight = headerHeightTotal();
394
- const t = performance.now();
395
394
  const x = computeRowPositions(rowCount, rowHeight(), rowAutoHeightGuess(), internal_rowAutoHeightCache(), (i) => {
396
395
  const row = rows[i];
397
396
  if (!row || !api.rowDetailIsExpanded(row))
398
397
  return 0;
399
398
  return api.rowDetailRenderedHeight(row);
400
399
  }, innerHeight - headerHeight);
401
- console.log(performance.now() - t);
402
400
  return x;
403
401
  });
404
402
  const heightTotal = computed(() => yPositions().at(-1));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
3
  "description": "Blazingly fast headless React data grid with 100s of features.",
4
- "version": "1.0.11",
4
+ "version": "1.0.12-dev.0",
5
5
  "type": "module",
6
6
  "license": "COMMERCIAL",
7
7
  "files": [
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@1771technologies/atom": "^1.0.2",
52
- "@1771technologies/lytenyte-core": "1.0.11",
53
- "@1771technologies/lytenyte-shared": "1.0.11",
54
- "@1771technologies/lytenyte-dom-utils": "1.0.11",
55
- "@1771technologies/lytenyte-js-utils": "1.0.11",
56
- "@1771technologies/lytenyte-dragon": "1.0.11",
57
- "@1771technologies/lytenyte-react-hooks": "1.0.11"
52
+ "@1771technologies/lytenyte-dom-utils": "1.0.12-dev.0",
53
+ "@1771technologies/lytenyte-core": "1.0.12-dev.0",
54
+ "@1771technologies/lytenyte-js-utils": "1.0.12-dev.0",
55
+ "@1771technologies/lytenyte-dragon": "1.0.12-dev.0",
56
+ "@1771technologies/lytenyte-shared": "1.0.12-dev.0",
57
+ "@1771technologies/lytenyte-react-hooks": "1.0.12-dev.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": "^18.0.0 || ^19.0.0",