i fixed some bugs regarding the scroll and dragging.