fix(mobile): show RTL scrollbar on the proper side
Mobile (not tablet) mode has a different sort of scrollbar to desktop mode. Like the desktop scrollbar, it should render on the other side if we are in RTL mode. Signed-off-by: Skyler Grey <skyler.grey@collabora.com> Change-Id: I2bcedbe79e572cc59a60648262ff77a48673e555
This commit is contained in:
parent
587504a662
commit
f419700762
1 changed files with 3 additions and 1 deletions
|
@ -360,7 +360,9 @@ export class ScrollSection extends app.definitions.canvasSectionObject {
|
|||
this.context.fillStyle = 'white';
|
||||
|
||||
var circleStartY = scrollProps.startY + this.sectionProperties.circleSliderRadius;
|
||||
var circleStartX = this.size[0] - this.sectionProperties.circleSliderRadius * 0.5;
|
||||
var circleStartX = this.isRTL()
|
||||
? this.sectionProperties.circleSliderRadius * 0.5
|
||||
: this.size[0] - this.sectionProperties.circleSliderRadius * 0.5;
|
||||
|
||||
this.context.beginPath();
|
||||
this.context.arc(circleStartX, circleStartY, this.sectionProperties.circleSliderRadius, 0, Math.PI * 2, true);
|
||||
|
|
Loading…
Reference in a new issue