Fix #22: sync scroll position between editor and preview