Skip to content

Commit fcdd907

Browse files
committed
Fix temporary tool not being removed, closes #809
1 parent d7a897f commit fcdd907

File tree

6 files changed

+174
-86
lines changed

6 files changed

+174
-86
lines changed

app/android/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,4 @@ DEPENDENCIES
227227
screengrab
228228

229229
BUNDLED WITH
230-
2.6.5
230+
2.6.6

app/lib/cubits/current_index.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,7 @@ class CurrentIndexCubit extends Cubit<CurrentIndex> {
604604
return handler;
605605
}
606606

607-
void resetReleaseHandler(DocumentBloc bloc) {
608-
if (state.temporaryState == TemporaryState.removeAfterRelease) {
609-
resetTemporaryHandler(bloc, true);
610-
}
611-
}
607+
void resetReleaseHandler(DocumentBloc bloc) => resetTemporaryHandler(bloc);
612608

613609
void resetTemporaryHandler(DocumentBloc bloc, [bool force = false]) {
614610
if (state.temporaryHandler == null) {

app/lib/views/view.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ class _MainViewViewportState extends State<MainViewViewport>
155155
if (nextPointerIndex <= 0) {
156156
cubit.changeTemporaryHandlerMove();
157157
} else {
158-
await cubit.changeTemporaryHandlerIndex(
159-
context,
160-
nextPointerIndex,
161-
);
158+
await cubit.changeTemporaryHandlerIndex(context, nextPointerIndex);
162159
}
163160
}
164161

docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"dependencies": {
1313
"@astrojs/check": "^0.9.4",
1414
"@astrojs/react": "^4.2.1",
15-
"@astrojs/starlight": "^0.32.2",
15+
"@astrojs/starlight": "^0.32.3",
1616
"@phosphor-icons/react": "^2.1.7",
17-
"@types/react": "^19.0.10",
17+
"@types/react": "^19.0.11",
1818
"@types/react-dom": "^19.0.4",
19-
"astro": "^5.5.2",
19+
"astro": "^5.5.3",
2020
"react": "^19.0.0",
2121
"react-dom": "^19.0.0",
2222
"remark-gemoji": "^8.0.0",
@@ -26,7 +26,7 @@
2626
"packageManager": "[email protected]",
2727
"devDependencies": {
2828
"@vite-pwa/astro": "^0.5.0",
29-
"sass": "^1.85.1",
29+
"sass": "^1.86.0",
3030
"sharp": "^0.33.5",
3131
"vite-plugin-pwa": "^0.21.1",
3232
"workbox-window": "^7.3.0"

0 commit comments

Comments
 (0)