Skip to content

Commit c8589d6

Browse files
committed
remove gesture and artifical top window resize
1 parent 2aa5bcc commit c8589d6

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

main.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,6 @@ def min_max(e):
6969

7070
page.window_title_bar_hidden = True
7171

72-
def on_pan_update(e: ft.DragUpdateEvent):
73-
if e.delta_y < 0 or e.delta_y > 0:
74-
print(e.control.top, e.delta_y)
75-
page.window_top += e.delta_y
76-
page.window_height -= e.delta_y
77-
page.update()
78-
79-
drag_window_resize=ft.Container(
80-
height=3,
81-
bgcolor="red",
82-
padding=0
83-
)
84-
85-
gd = ft.GestureDetector(
86-
mouse_cursor=ft.MouseCursor.RESIZE_UP_DOWN,
87-
on_horizontal_drag_update=on_pan_update,
88-
content=drag_window_resize
89-
)
90-
9172
drag_window = ft.Container(
9273
content=ft.Row([
9374
ft.Container(
@@ -2845,7 +2826,7 @@ def select_path(e: ft.FilePickerResultEvent):
28452826
show_message("Invalid program.")
28462827
update_settings(e)
28472828
if powershell_checkmark.visible and pstools_checkmark.visible:
2848-
page.controls = [gd, drag_window, main_view]
2829+
page.controls = [drag_window, main_view]
28492830
show_message("Setup complete.")
28502831
page.update()
28512832

@@ -2925,7 +2906,6 @@ def has_admin():
29252906
page_view = setup_view
29262907

29272908
page.add(
2928-
gd,
29292909
drag_window,
29302910
page_view
29312911
)

0 commit comments

Comments
 (0)