Change: [OSX] Setting mouse-wheel to scroll the map does not disable pinch to zoom
This commit is contained in:

committed by
Michael Lutz

parent
6df7ced343
commit
e1a164b531
@@ -1559,7 +1559,7 @@ int SmallMapWindow::GetPositionOnLegend(Point pt)
|
||||
|
||||
/* virtual */ void SmallMapWindow::OnMouseWheel(int wheel)
|
||||
{
|
||||
if (_settings_client.gui.scrollwheel_scrolling == 0) {
|
||||
if (_settings_client.gui.scrollwheel_scrolling != 2) {
|
||||
const NWidgetBase *wid = this->GetWidget<NWidgetBase>(WID_SM_MAP);
|
||||
int cursor_x = _cursor.pos.x - this->left - wid->pos_x;
|
||||
int cursor_y = _cursor.pos.y - this->top - wid->pos_y;
|
||||
|
Reference in New Issue
Block a user