mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-31 14:33:50 -04:00
Fixed an issue where scrollbar + tap to paginate in book reader would not allow the user to use mouse to scroll. (#1055)
This commit is contained in:
parent
a8e7e00872
commit
91aa46855b
@ -117,7 +117,7 @@
|
||||
[innerHtml]="page" *ngIf="page !== undefined"></div>
|
||||
|
||||
<div class="left {{clickOverlayClass('left')}} no-observe" (click)="prevPage()" *ngIf="clickToPaginate" tabindex="-1"></div>
|
||||
<div class="right {{clickOverlayClass('right')}} no-observe" (click)="nextPage()" *ngIf="clickToPaginate" tabindex="-1"></div>
|
||||
<div class="{{scrollbarNeeded ? 'right-with-scrollbar' : 'right'}} {{clickOverlayClass('right')}} no-observe" (click)="nextPage()" *ngIf="clickToPaginate" tabindex="-1"></div>
|
||||
|
||||
<div *ngIf="page !== undefined && scrollbarNeeded">
|
||||
<ng-container [ngTemplateOutlet]="actionBar"></ng-container>
|
||||
|
@ -202,9 +202,22 @@ $primary-color: #0062cc;
|
||||
|
||||
.right {
|
||||
position: fixed;
|
||||
right: 0px;
|
||||
right: 0px; // with scrollbar: 17px
|
||||
top: 0px;
|
||||
width: 20%;
|
||||
width: 20%; // with scrollbar: 18%
|
||||
height: 100%;
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
// This class pushes the click area to the left a bit to let users click the scrollbar
|
||||
.right-with-scrollbar {
|
||||
position: fixed;
|
||||
right: 17px;
|
||||
top: 0px;
|
||||
width: 18%;
|
||||
height: 100%;
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user