[DEBUG] reset zoom in scrolled windows when ctrl+middle button
This commit is contained in:
parent
ff84a9ea20
commit
18087d132a
@ -162,6 +162,12 @@ bool ewol::WidgetScrooled::OnEventInput(ewol::inputType_te type, int32_t IdInput
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if (2 == IdInput) {
|
}else if (2 == IdInput) {
|
||||||
|
if (true == ewol::IsSetCtrl()) {
|
||||||
|
if (ewol::EVENT_INPUT_TYPE_DOWN == typeEvent) {
|
||||||
|
float zoom = 1.0;
|
||||||
|
SetZoom(zoom);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (ewol::EVENT_INPUT_TYPE_DOWN == typeEvent) {
|
if (ewol::EVENT_INPUT_TYPE_DOWN == typeEvent) {
|
||||||
m_highSpeedMode = ewol::SCROLL_INIT;
|
m_highSpeedMode = ewol::SCROLL_INIT;
|
||||||
m_highSpeedType = ewol::INPUT_TYPE_MOUSE;
|
m_highSpeedType = ewol::INPUT_TYPE_MOUSE;
|
||||||
@ -170,6 +176,7 @@ bool ewol::WidgetScrooled::OnEventInput(ewol::inputType_te type, int32_t IdInput
|
|||||||
m_highSpeedButton = 2;
|
m_highSpeedButton = 2;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (ewol::SCROLL_DISABLE!=m_highSpeedMode && ewol::EVENT_INPUT_TYPE_LEAVE == typeEvent) {
|
} else if (ewol::SCROLL_DISABLE!=m_highSpeedMode && ewol::EVENT_INPUT_TYPE_LEAVE == typeEvent) {
|
||||||
m_highSpeedMode = ewol::SCROLL_DISABLE;
|
m_highSpeedMode = ewol::SCROLL_DISABLE;
|
||||||
m_highSpeedType = ewol::INPUT_TYPE_UNKNOW;
|
m_highSpeedType = ewol::INPUT_TYPE_UNKNOW;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user