Skip to content

Commit

Permalink
bump version to v2.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jul 29, 2024
1 parent a0dfeb0 commit ece31c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ReadMe: https://github.com/gdh1995/vimium-c/#readme .<br/>
* update minimum browser version to Chromium 109 and Firefox 115 in the public released packages
* they are the last versions supporting Win 7 and Win 8 series

#### v2.11.1
#### v2.11.2
* fix new bugs

#### v2.11
Expand Down
6 changes: 2 additions & 4 deletions content/mode_find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ const scrollSelectionAfterFind = (par: Element, newAnchor: Element | 0, sel: Sel
let textBoxRect: Rect | 1 | false | 0 | null | void = !kMayInTextBox ? null : textStyle && noFocus
&& (getZoom_(newAnchor as TextElement), prepareCrop_(), 1)
let context: CanvasRenderingContext2D, widthOrEnd: number
// `window.find()` may auto make a target scroll into view smoothly, but a manual `scrollBy` breaks the animation
const oldInvisibility = +isSafeEl_(par) && view_(par as SafeElement, !textBoxRect)
textBoxRect = kMayInTextBox ? textBoxRect && boundingRect_(newAnchor as TextElement) : null
if (kMayInTextBox && isTY(textStyle, kTY.obj)) {
Expand All @@ -985,10 +986,7 @@ const scrollSelectionAfterFind = (par: Element, newAnchor: Element | 0, sel: Sel
top *= textStyle[1]
const scX = (ltr ? 1 : -1) * max_(0, start - max_width / 2) + baseScPosX
const scY = max_(0, top - (textStyle[3] - textStyle[1]) / 2)
if (OnChrome && Build.MinCVer < BrowserVer.MinJsScrollNotBreakAutoScrollAfterFind
&& oldInvisibility && (BrowserVer.MinJsScrollNotBreakAutoScrollAfterFind >= 999
|| chromeVer_ < BrowserVer.MinJsScrollNotBreakAutoScrollAfterFind)
&& isNotInViewport(newAnchor as TextElement)) { /* empty */ }
if (OnChrome && oldInvisibility && isNotInViewport(newAnchor as TextElement)) { /* empty */ }
else if ((OnChrome ? Build.MinCVer >= BrowserVer.MinEnsuredCSS$ScrollBehavior : !OnEdge)
|| (newAnchor as Element).scrollTo) {
(newAnchor as TextElement).scrollTo(instantScOpt(scX, scY))
Expand Down
3 changes: 1 addition & 2 deletions lib/rect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ export const view_ = (el: SafeElement, allowSmooth?: BOOL | boolean, oldY?: numb
if (style) { style.setProperty(kBh, "auto", "important") }
OnEdge || OnChrome && Build.MinCVer < BrowserVer.MinScrollIntoViewOptions
? scrollIntoView_(el, !allowSmooth, delta < 0) : scrollIntoView_(el, !allowSmooth)
const stillNotInView = (OnChrome ? Build.MinCVer < BrowserVer.MinJsScrollNotBreakAutoScrollAfterFind : !OnEdge)
&& isNotInViewport(el)
const stillNotInView = !OnEdge && isNotInViewport(el)
if (!stillNotInView && f) {
secondScroll = elHeight < ih ? oldY! - scrollY : 0
// required range of wanted: delta > 0 ? [-limit, 0] : [0, limit]
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
],
"short_name": "Vimium C",
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "2.11.1",
"version_name": "2.11.1",
"version": "2.11.2",
"version_name": "2.11.2",
"web_accessible_resources": [ {
"resources": [ "content/*", "front/vomnibar*", "lib/*" ],
"matches": [ "<all_urls>", "chrome-extension://*/*" ],
Expand Down
2 changes: 0 additions & 2 deletions typings/compatibility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,6 @@ declare const enum BrowserVer {
MinNew$URL$NotDecodePathname = 118,
Min$ScrollBehavior$$Instant$InJS = 121, // even if EXP or LEGACY
MinEnsured$select$$showPicker = 121, // since 119 if EXP
// `window.find()` may auto make a target scroll into view smoothly, but a manual `scrollBy` breaks the animation
MinJsScrollNotBreakAutoScrollAfterFind = 999,
MinNo$TimerType$$Fake = 999,
assumedVer = 998,
}
Expand Down

0 comments on commit ece31c4

Please sign in to comment.