Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cytoscape-grid-guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ module.exports = function (opts, cy, debounce) {
$canvas.style.top = 0;
$canvas.style.left = 0;
$canvas.style.zIndex = options.guidelinesStackOrder;
$canvas.style.pointerEvents = "none";

setTimeout(function () {

Expand Down Expand Up @@ -1855,6 +1856,7 @@ module.exports = function (opts, cy, debounce) {
$canvas.style.top = 0;
$canvas.style.left = 0;
$canvas.style.zIndex = options.guidelinesStackOrder;
$canvas.style.pointerEvents = "none";
};

resetCanvas();
Expand Down
2 changes: 2 additions & 0 deletions src/guidelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = function (opts, cy, debounce) {
$canvas.style.top = 0;
$canvas.style.left = 0;
$canvas.style.zIndex = options.guidelinesStackOrder;
$canvas.style.pointerEvents = "none";
Copy link

Copilot AI Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The canvas style assignments are duplicated across multiple blocks; consider extracting common style logic (including pointer-events) into a helper or reusing resetCanvas to reduce repetition.

Copilot uses AI. Check for mistakes.


setTimeout(function () {

Expand Down Expand Up @@ -73,6 +74,7 @@ module.exports = function (opts, cy, debounce) {
$canvas.style.top = 0;
$canvas.style.left = 0;
$canvas.style.zIndex = options.guidelinesStackOrder;
$canvas.style.pointerEvents = "none";
};

resetCanvas();
Expand Down