fix(sliding-item): finish it

This commit is contained in:
Manu Mtz.-Almeida
2017-11-02 10:25:40 +01:00
parent d0e486d2d8
commit 1bfc0c71e3
13 changed files with 269 additions and 325 deletions

View File

@ -175,7 +175,8 @@ export function checkEdgeSide(posX: number, isRightSide: boolean, maxEdgeStart:
* @param isRTL whether the application dir is rtl
* @param defaultRight whether the default side is right
*/
export function isRightSide(side: Side, isRTL: boolean, defaultRight: boolean = false): boolean {
export function isRightSide(side: Side, defaultRight: boolean = false): boolean {
const isRTL = document.dir === 'rtl';
switch (side) {
case 'right': return true;
case 'left': return false;