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/Output bar on Ios #1406

Merged
merged 8 commits into from
Mar 10, 2023
Merged

Conversation

tomivm
Copy link
Collaborator

@tomivm tomivm commented Mar 8, 2023

In order to create a global solution for all browsers and user agents. This fix implements a new way to auto-scroll to the output bar's last symbol.
close #1397

@tomivm tomivm self-assigned this Mar 8, 2023
const scrollToLastSymbol = () => {
const { symbols } = this.props;
if (prevProps.symbols.length < symbols.length) {
try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@martinbedouret What do you think about use try catch block here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe necessary for the case that element is not found?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. That was the intention.

const scrollToLastSymbol = () => {
const { symbols } = this.props;
if (prevProps.symbols.length < symbols.length) {
try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe necessary for the case that element is not found?

@martinbedouret martinbedouret merged commit d35b635 into cboard-org:master Mar 10, 2023
@martinbedouret martinbedouret added this to the 1.26.0 milestone Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tiles on Output Bar are not sliding
3 participants