Bugs in mouse panning when viewport is "portrait" orientation