Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Development]: Custom line algorithm stops touchpad from scrolling down in visual mark mode #1243

Open
OmegaLambda1998 opened this issue Nov 27, 2024 · 1 comment

Comments

@OmegaLambda1998
Copy link

When using force_custom_line_algorithm 1, visual marks can't scroll down via the touchpad. move_visual_mark_[up|down] commands still work fine, and scrolling up works as expected, but scrolling down simply displays a small red rectangle within the visual mark (see attached image)

Sioyek Version: 2.0.0.r947.g206177a-1

prefs_user.config
check_for_updates_on_startup 0
use_legacy_keybinds 0
background_color 0.97 0.97 0.97
dark_mode_background_color 0.0 0.0 0.0
dark_mode_contrast 0.8
text_highlight_color 1.0 1.0 0.0
visual_mark_color 0.0 0.0 0.0 0.1
search_highlight_color 0.0 1.0 0.0
link_highlight_color 0.0 0.0 1.0
synctex_highlight_color 1.0 0.0 1.0
use_ruler_to_highlight_synctex_line 1
dont_center_if_synctex_rect_is_visible 1
search_url_s https://scholar.google.com/scholar?q=
search_url_g https://www.google.com/search?q=
search_url_d https://www.duckduckgo.com/search?q=
middle_click_search_engine d
shift_middle_click_search_engine s
zoom_inc_factor 1.2
vertical_move_amount 1.0
horizontal_move_amount 1.0
move_screen_ratio 0.5
flat_toc 0
should_use_multiple_monitors 0
should_load_tutorial_when_no_other_file 0
should_launch_new_instance 0
should_launch_new_window 1
visual_mark_next_page_fraction 0
visual_mark_next_page_threshold 1
should_draw_unrendered_pages 0
rerender_overview 1
overview_size 0.8 0.5
overview_offset 0.0 -0.5
default_dark_mode 0
sort_bookmarks_by_location 1
startup_commands toggle_horizontal_scroll_lock;toggle_custom_color;toggle_visual_scroll;toggle_highligt;toggle_smooth_scroll_mode
custom_background_color 0.180 0.204 0.251
custom_text_color 0.847 0.871 0.914
wheel_zoom_on_cursor 1
fit_to_page_width_ratio 0.75
collapsed_toc 1
ruler_mode 1
ruler_display_mode slit
ruler_padding 1.0
ruler_x_padding 5.0
force_custom_line_algorithm 1
create_table_of_contents_if_not_exists 1
max_created_toc_size 5000
should_warn_about_user_key_override 1
single_click_selects_words 1
show_doc_path 1
multiline_menus 1
prerender_next_page_presentation 1
case_sensitive_search 1
highlight_color_a 0.94 0.64 1.00
highlight_color_b 0.00 0.46 0.86
highlight_color_c 0.60 0.25 0.00
highlight_color_d 0.30 0.00 0.36
highlight_color_e 0.10 0.10 0.10
highlight_color_f 0.00 0.36 0.19
highlight_color_g 0.17 0.81 0.28
highlight_color_h 1.00 0.80 0.60
highlight_color_i 0.50 0.50 0.50
highlight_color_j 0.58 1.00 0.71
highlight_color_k 0.56 0.49 0.00
highlight_color_l 0.62 0.80 0.00
highlight_color_m 0.76 0.00 0.53
highlight_color_n 0.00 0.20 0.50
highlight_color_o 1.00 0.64 0.02
highlight_color_p 1.00 0.66 0.73
highlight_color_q 0.26 0.40 0.00
highlight_color_r 1.00 0.00 0.06
highlight_color_s 0.37 0.95 0.95
highlight_color_t 0.00 0.60 0.56
highlight_color_u 0.88 1.00 0.40
highlight_color_v 0.45 0.04 1.00
highlight_color_w 0.60 0.00 0.00
highlight_color_x 1.00 1.00 0.50
highlight_color_y 1.00 1.00 0.00
highlight_color_z 1.00 0.31 0.02
keys_user.config
goto_beginning gg
goto_beginning <C-<home>>
goto_end <end>
goto_end G
goto_page_with_page_number <home>
goto_left_smart ^
goto_right_smart $
goto_top_of_page;goto_right_smart zz
next_page <C-<pagedown>>
previous_page <C-<pageup>>
screen_down J
screen_up K
screen_down <pagedown>
screen_up <pageup>
next_chapter gc
prev_chapter gC
prev_state <backspace>
prev_state <C-<left>>
new_window <C-t>
close_window <C-d>
next_state <C-l>
next_state <C-h>
goto_toc t
zoom_in  +
fit_to_page_width =
zoom_out -
rotate_clockwise r
rotate_counterclockwise R
fit_to_page_width <f9>
fit_to_page_width_smart <f10>
open_document <C-S-o>
open_document_embedded <C-o>
open_document_embedded_from_current_path o
open_prev_doc O
enter_visual_mark_mode V
move_visual_mark_up k
move_visual_mark_down j
move_visual_mark_up <up>
move_visual_mark_down <down>
search <C-f>
search /
chapter_search c<C-f>
chapter_search c/
next_item n
previous_item N
add_bookmark b
delete_bookmark db
goto_bookmark gb
goto_bookmark_g gB
add_highlight h
add_annot_to_highlight ah
goto_highlight gh
goto_highlight_g gH
delete_highlight dh
goto_next_highlight gnh
goto_prev_highlight gNh
set_mark m
goto_mark `
portal p
delete_portal dp
goto_portal gp
goto_portal <tab>
edit_portal P
edit_portal <S-<tab>>
toggle_window_configuration <f12>
copy y
toggle_fullscreen <f11>
toggle_highlight <f1>
command :
external_search s
toggle_dark_mode <f8>
toggle_synctex <f4>
synctex_under_cursor gf
toggle_mouse_drag_mode <f6>
toggle_visual_scroll <f7>
overview_definition l
goto_definition <C-]>
portal_to_definition ]
toggle_presentation_mode <f5>
noop q
open_link f
overview_link F
keyboard_select v
Example Image

When trying to scroll down with the touchpad, I get the following little red rectangle:
2024_11_27_13_34_13

pressing j (mapped to move_visual_mark_down) works just fine.

@ahrm
Copy link
Owner

ahrm commented Nov 27, 2024

Does the issue happen with all documents and all zoom levels? What happens if you zoom out such that the documents fills only half of the screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants