-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fix/Output bar on Ios #1406
Conversation
const scrollToLastSymbol = () => { | ||
const { symbols } = this.props; | ||
if (prevProps.symbols.length < symbols.length) { | ||
try { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
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