WebPositive: style fixes related to scrolling
rename dy to deltaY
This commit is contained in:
@@ -736,12 +736,13 @@ BrowserWindow::DispatchMessage(BMessage* message, BHandler* target)
|
|||||||
// know the setting of the fZoomTextOnly member here. Plus other
|
// know the setting of the fZoomTextOnly member here. Plus other
|
||||||
// clients of the API may not want this feature.
|
// clients of the API may not want this feature.
|
||||||
if ((modifiers() & B_COMMAND_KEY) != 0) {
|
if ((modifiers() & B_COMMAND_KEY) != 0) {
|
||||||
float dy;
|
float deltaY;
|
||||||
if (message->FindFloat("be:wheel_delta_y", &dy) == B_OK) {
|
if (message->FindFloat("be:wheel_delta_y", &deltaY) == B_OK) {
|
||||||
if (dy < 0)
|
if (deltaY < 0)
|
||||||
CurrentWebView()->IncreaseZoomFactor(fZoomTextOnly);
|
CurrentWebView()->IncreaseZoomFactor(fZoomTextOnly);
|
||||||
else
|
else
|
||||||
CurrentWebView()->DecreaseZoomFactor(fZoomTextOnly);
|
CurrentWebView()->DecreaseZoomFactor(fZoomTextOnly);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user