fixed bug with zoom in and scrolling
fixed bug with gradient orientation