Skip to content

Commit

Permalink
fix: stuttering during scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Sep 16, 2024
1 parent 8fe901a commit a42402d
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 52 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Changelog
## [0.2.18]

### 修复

- 滚动时的卡顿感, 编写了新的滚动逻辑
- 偶发模拟复制时 `ctrl` 键抬起未被识别

### 更新

- 优化代码, 理论上更快了, 资源消耗减少

## [0.2.17]

### 修复
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tran",
"version": "0.2.17",
"version": "0.2.18",
"description": "简洁, 快速, 划词翻译",
"type": "module",
"scripts": {
Expand All @@ -19,8 +19,8 @@
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.5",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"eslint": "^9.10.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-solid": "^0.14.3",
Expand Down
113 changes: 89 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tran"
version = "0.2.17"
version = "0.2.18"
description = "Tran translate the selected words"
authors = ["Borber"]
license = "GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn menu(handle: &AppHandle) -> Result<Menu<Wry>> {

let github = MenuItem::with_id(handle, "github", "GitHub", true, None::<&str>)?;
let telegram = MenuItem::with_id(handle, "telegram", "Telegram", true, None::<&str>)?;
let version = MenuItem::with_id(handle, "version", "v0.2.17", false, None::<&str>)?;
let version = MenuItem::with_id(handle, "version", "v0.2.18", false, None::<&str>)?;
let about = Submenu::with_items(handle, "About", true, &[&github, &telegram, &version])?;
let exit = MenuItem::with_id(handle, "exit", "Exit", true, None::<&str>)?;
Menu::with_items(handle, &[&mode, &key, &theme, &about, &exit])
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "Tran",
"version": "0.2.17",
"version": "0.2.18",
"identifier": "com.borber.tran",
"build": {
"beforeDevCommand": "pnpm dev",
Expand Down
Loading

0 comments on commit a42402d

Please sign in to comment.