chore: remove console.logs
This commit is contained in:
@@ -200,15 +200,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
console.log('before', store.enablePanOnFocus);
|
if (store.disableKeyboardA11y || !store.enablePanOnFocus || !nodeRef?.matches(':focus-visible')) {
|
||||||
if (store.disableKeyboardA11y || !store.enablePanOnFocus) {
|
|
||||||
console.log("should return early", store.enablePanOnFocus);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nodeRef?.matches(':focus-visible')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const width = store.width;
|
const width = store.width;
|
||||||
const height = store.height;
|
const height = store.height;
|
||||||
const viewport: [number, number, number] = [store.viewport.x, store.viewport.y, store.viewport.zoom];
|
const viewport: [number, number, number] = [store.viewport.x, store.viewport.y, store.viewport.zoom];
|
||||||
@@ -219,9 +214,6 @@
|
|||||||
const isNodeVisible = visibleNodes.length > 0;
|
const isNodeVisible = visibleNodes.length > 0;
|
||||||
|
|
||||||
if (!isNodeVisible) {
|
if (!isNodeVisible) {
|
||||||
console.log('About to call fitView - this should NOT happen when enablePanOnFocus is false');
|
|
||||||
|
|
||||||
console.log('after', store.enablePanOnFocus);
|
|
||||||
store.fitView({
|
store.fitView({
|
||||||
nodes: [{ id }],
|
nodes: [{ id }],
|
||||||
duration: 100,
|
duration: 100,
|
||||||
|
|||||||
Reference in New Issue
Block a user