Improved panning and zooming for editor

1. Dragging now works for editor
2. Fixes a panning bug with mouse scroll