Change: [OSX] Setting mouse-wheel to scroll the map does not disable pinch to zoom

This commit is contained in:
Alexander Weiss
2018-04-28 00:12:49 +02:00
committed by Michael Lutz
parent 6df7ced343
commit e1a164b531
4 changed files with 5 additions and 5 deletions

View File

@@ -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;