| 146 | } |
| 147 | |
| 148 | const setNativeContextMenuDisabled = (disabled) => { |
| 149 | const value = !!disabled; |
| 150 | if (nativeContextMenuDisabled === value) return; |
| 151 | nativeContextMenuDisabled = value; |
| 152 | const api = globalThis.system?.setNativeContextMenuDisabled; |
| 153 | if (typeof api !== "function") return; |
| 154 | try { |
| 155 | api.call(globalThis.system, value); |
| 156 | } catch (error) { |
| 157 | console.warn("Failed to update native context menu state", error); |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | const { scrollbarSize, scrollbarHeight } = appSettings.value; |
| 162 | const events = { |