mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Remove a couple of old frontend comments
This commit is contained in:
@@ -416,11 +416,6 @@
|
|||||||
export function setHighlighted(newHighlight: MenuListEntry | undefined) {
|
export function setHighlighted(newHighlight: MenuListEntry | undefined) {
|
||||||
highlighted = newHighlight;
|
highlighted = newHighlight;
|
||||||
|
|
||||||
// Interactive menus should keep the active entry the same as the highlighted one
|
|
||||||
// if (interactive && newHighlight?.value !== activeEntry?.value && newHighlight) {
|
|
||||||
// dispatch("activeEntry", newHighlight);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Scroll into view
|
// Scroll into view
|
||||||
let container = scroller?.div?.();
|
let container = scroller?.div?.();
|
||||||
if (!container || !highlighted) return;
|
if (!container || !highlighted) return;
|
||||||
|
|||||||
@@ -74,7 +74,6 @@
|
|||||||
if (activeEntrySkipWatcher) {
|
if (activeEntrySkipWatcher) {
|
||||||
activeEntrySkipWatcher = false;
|
activeEntrySkipWatcher = false;
|
||||||
} else if (activeEntry !== DASH_ENTRY) {
|
} else if (activeEntry !== DASH_ENTRY) {
|
||||||
// We need to set to the initial value first to track a right history step, as if we hover in initial selection.
|
|
||||||
if (initialSelectedIndex !== undefined) dispatch("hoverInEntry", initialSelectedIndex);
|
if (initialSelectedIndex !== undefined) dispatch("hoverInEntry", initialSelectedIndex);
|
||||||
const index = entries.flat().findIndex((entry) => entry.value === activeEntry.value);
|
const index = entries.flat().findIndex((entry) => entry.value === activeEntry.value);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user