Changeset 162386 in webkit


Ignore:
Timestamp:
Jan 20, 2014 4:27:22 PM (10 years ago)
Author:
eunmi15.lee@samsung.com
Message:

[EFL][WK2] Amount of scrolling is different from movement of touch when device pixel ratio is not 1.
https://bugs.webkit.org/show_bug.cgi?id=127268

Reviewed by Gyuyoung Kim.

Amount of scrolling should be same with movement of touch even though
device pixel ratio is not 1, so apply device pixel ratio to the new
position of scrollBy().

  • UIProcess/API/efl/EwkView.cpp:

(EwkView::scrollBy):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162382 r162386  
     12014-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
    1152014-01-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
    216
  • trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp

    r162182 r162386  
    14161416    float contentScale = WKViewGetContentScaleFactor(wkView());
    14171417
    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);
    14191420
    14201421    // Update new position to the PageViewportController.
Note: See TracChangeset for help on using the changeset viewer.