Skip to content

Commit

Permalink
Merge pull request #112 from Shailesh351/sb_fix_swipe_left
Browse files Browse the repository at this point in the history
[FIX] Swipe Left Bug on DM
  • Loading branch information
kb0304 authored Dec 13, 2019
2 parents a7befe8 + ac8eb32 commit 910b28d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/ui-utils/client/lib/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export const menu = new class extends EventEmitter {
if (diff === undefined) {
diff = this.isRtl ? -1 * sideNavW : sideNavW;
}
this.sidebarWrap.css('width', '100%');

this.wrapper.css('overflow', 'hidden');
this.sidebarWrap.css('background-color', '#000');
this.sidebarWrap.css('opacity', map(Math.abs(diff) / width, 0, 1, -0.1, 0.8).toFixed(2));
this.isRtl ? this.sidebar.css('transform', `translate3d(${ (sideNavW + diff).toFixed(3) }px, 0 , 0)`) : this.sidebar.css('transform', `translate3d(${ (diff - sideNavW).toFixed(3) }px, 0 , 0)`);

// WIDECHAT translate main content
this.isRtl ? this.mainContent.css('transform', `translate3d(${ (diff).toFixed(3) }px, 0 , 0)`) : this.mainContent.css('transform', `translate3d(${ (diff).toFixed(3) }px, 0 , 0)`);
}

touchend() {
Expand Down

0 comments on commit 910b28d

Please sign in to comment.