mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-09 18:49:11 +02:00
Auto-scroll off by default
This commit is contained in:
parent
6b6443406d
commit
d0b2bf736e
@ -10,7 +10,7 @@
|
|||||||
document.head.appendChild(styleSheet);
|
document.head.appendChild(styleSheet);
|
||||||
|
|
||||||
const autoScrollControl = document.createElement('div');
|
const autoScrollControl = document.createElement('div');
|
||||||
autoScrollControl.innerHTML = `<input id="auto_scroll" name="auto_scroll" type="checkbox" checked>
|
autoScrollControl.innerHTML = `<input id="auto_scroll" name="auto_scroll" type="checkbox">
|
||||||
<label for="auto_scroll">Auto-scroll</label>`
|
<label for="auto_scroll">Auto-scroll</label>`
|
||||||
autoScrollControl.className = "auto-scroll"
|
autoScrollControl.className = "auto-scroll"
|
||||||
previewTools.appendChild(autoScrollControl)
|
previewTools.appendChild(autoScrollControl)
|
||||||
@ -20,7 +20,7 @@
|
|||||||
SETTINGS_IDS_LIST.push("auto_scroll")
|
SETTINGS_IDS_LIST.push("auto_scroll")
|
||||||
initSettings()
|
initSettings()
|
||||||
|
|
||||||
// observe for changes in tag list
|
// observe for changes in the preview pane
|
||||||
var observer = new MutationObserver(function (mutations) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
mutations.forEach(function (mutation) {
|
mutations.forEach(function (mutation) {
|
||||||
console.log(mutation.target.class)
|
console.log(mutation.target.class)
|
||||||
|
Loading…
Reference in New Issue
Block a user