File tree 6 files changed +533
-133
lines changed
6 files changed +533
-133
lines changed Original file line number Diff line number Diff line change 28
28
run : |
29
29
# Check that the Carthage project is up to date.
30
30
make carthage-project
31
- git diff --exit-code --name-only Support/Carthage/Readium.xcodeproj
31
+ git diff --exit-code Support/Carthage/Readium.xcodeproj
32
32
- name : Build
33
33
run : |
34
34
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
38
38
39
39
lint :
40
40
name : Lint
41
- runs-on : macos-11
41
+ runs-on : macos-12
42
42
if : ${{ !github.event.pull_request.draft }}
43
43
env :
44
44
scripts : ${{ 'Sources/Navigator/EPUB/Scripts' }}
61
61
62
62
int-dev :
63
63
name : Integration (Local)
64
- runs-on : macos-11
64
+ runs-on : macos-12
65
65
if : ${{ !github.event.pull_request.draft }}
66
66
defaults :
67
67
run :
80
80
81
81
int-spm :
82
82
name : Integration (Swift Package Manager)
83
- runs-on : macos-11
83
+ runs-on : macos-12
84
84
if : ${{ !github.event.pull_request.draft }}
85
85
defaults :
86
86
run :
@@ -105,7 +105,7 @@ jobs:
105
105
106
106
int-carthage :
107
107
name : Integration (Carthage)
108
- runs-on : macos-11
108
+ runs-on : macos-12
109
109
if : ${{ !github.event.pull_request.draft }}
110
110
defaults :
111
111
run :
@@ -133,7 +133,7 @@ jobs:
133
133
int-cocoapods :
134
134
name : Integration (CocoaPods)
135
135
if : github.event_name == 'push'
136
- runs-on : macos-11
136
+ runs-on : macos-12
137
137
defaults :
138
138
run :
139
139
working-directory : TestApp
Original file line number Diff line number Diff line change @@ -2512,7 +2512,7 @@ function scrollToRange(range) {
2512
2512
}
2513
2513
function scrollToRect ( rect ) {
2514
2514
if ( isScrollModeEnabled ( ) ) {
2515
- document . scrollingElement . scrollTop = rect . top + window . scrollY - window . innerHeight / 2 ;
2515
+ document . scrollingElement . scrollTop = rect . top + window . scrollY ;
2516
2516
} else {
2517
2517
document . scrollingElement . scrollLeft = snapOffset ( rect . left + window . scrollX ) ;
2518
2518
}
Original file line number Diff line number Diff line change @@ -2512,7 +2512,7 @@ function scrollToRange(range) {
2512
2512
}
2513
2513
function scrollToRect ( rect ) {
2514
2514
if ( isScrollModeEnabled ( ) ) {
2515
- document . scrollingElement . scrollTop = rect . top + window . scrollY - window . innerHeight / 2 ;
2515
+ document . scrollingElement . scrollTop = rect . top + window . scrollY ;
2516
2516
} else {
2517
2517
document . scrollingElement . scrollLeft = snapOffset ( rect . left + window . scrollX ) ;
2518
2518
}
Original file line number Diff line number Diff line change @@ -188,8 +188,7 @@ function scrollToRange(range) {
188
188
189
189
function scrollToRect ( rect ) {
190
190
if ( isScrollModeEnabled ( ) ) {
191
- document . scrollingElement . scrollTop =
192
- rect . top + window . scrollY - window . innerHeight / 2 ;
191
+ document . scrollingElement . scrollTop = rect . top + window . scrollY ;
193
192
} else {
194
193
document . scrollingElement . scrollLeft = snapOffset (
195
194
rect . left + window . scrollX
You can’t perform that action at this time.
0 commit comments