HomePhabricator

interface_scrollable: Unify basis of calculation of page_get logic

Authored by WhiskyKiloSq on Jan 15 2017, 9:20 PM.

Description

interface_scrollable: Unify basis of calculation of page_get logic

Summary:
If rtl mode is set, current_page_get api should return reversed page number.
To do that, make x position x-axis reversed before page calculating.

Also bring_in and page_show should show the reversed page in rtl mode.
This patch modify the functions to support that.

Lastly, scroller should be scrolling based on the right edge of the page.

This patch is a combination of the patches(D4559,D4560)

Test Plan:

  1. Run scroller test on elementary_test
  2. Turn ui mirrored mode on
  3. Manipulate scroller in various ways
    • It should scroll proper position when you click next or prev btn.

Reviewers: woohyun, taxi2se, z-wony, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4558