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

fix(chart) fixed point-following cursor during vertical scroll in charts #2400

Merged
merged 1 commit into from Jul 23, 2021

Conversation

EnricoLusaEGF
Copy link
Contributor

Description of the feature or fix

Here's the issue(cursor linked to a point not following the cursor during vertical scrolling):
https://sim.lvgl.io/v8.1/micropython/ports/javascript/index.html?script_startup=https://raw.githubusercontent.com/lvgl/lvgl/6d8799fbbfb1477ad2e0887644fb4cd900817199/examples/header.py&script=https://raw.githubusercontent.com/lvgl/lvgl/6d8799fbbfb1477ad2e0887644fb4cd900817199/examples/widgets/chart/lv_example_chart_1.py&script_direct=7e3cdfc917ff6519147fd3877ac9c7dd764be780

After following the cursor drawing code I ended up at the same four lines I just pushed this morning.
p_out->y -= lv_obj_get_scroll_top(obj); was missing so the vertical scroll was not accounted for.

Copy link
Member

@embeddedt embeddedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see the online simulator in use. 🙂

@kisvegabor
Copy link
Member

I was also happy to see the simulator being used 🙂

Merging, thank you!

@kisvegabor kisvegabor merged commit 105bf24 into lvgl:master Jul 23, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants