Changeset 162386 in webkit
- Timestamp:
- Jan 20, 2014 4:27:22 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r162382 r162386 1 2014-01-20 Eunmi Lee <eunmi15.lee@samsung.com> 2 3 [EFL][WK2] Amount of scrolling is different from movement of touch when device pixel ratio is not 1. 4 https://bugs.webkit.org/show_bug.cgi?id=127268 5 6 Reviewed by Gyuyoung Kim. 7 8 Amount of scrolling should be same with movement of touch even though 9 device pixel ratio is not 1, so apply device pixel ratio to the new 10 position of scrollBy(). 11 12 * UIProcess/API/efl/EwkView.cpp: 13 (EwkView::scrollBy): 14 1 15 2014-01-20 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 16 -
trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp
r162182 r162386 1416 1416 float contentScale = WKViewGetContentScaleFactor(wkView()); 1417 1417 1418 FloatPoint newPosition(oldPosition.x + offset.width() / contentScale, oldPosition.y + offset.height() / contentScale); 1418 float effectiveScale = contentScale * deviceScaleFactor(); 1419 FloatPoint newPosition(oldPosition.x + offset.width() / effectiveScale, oldPosition.y + offset.height() / effectiveScale); 1419 1420 1420 1421 // Update new position to the PageViewportController.
Note: See TracChangeset
for help on using the changeset viewer.