fixed the scrolling issue and also enabled dragging between galleries