Monitor the scroll value to sync preview, this solution is working well when user drag scroll bar with mouse.
Use css file to define the width of editor's scroll bar