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

[2][kapeer42] Exchange Vertical OrderBook Centering Issues #1689

Closed
startailcoon opened this issue Jul 10, 2018 · 18 comments
Closed

[2][kapeer42] Exchange Vertical OrderBook Centering Issues #1689

startailcoon opened this issue Jul 10, 2018 · 18 comments
Labels
[3] Bug Classification indicating the existing implementation does not match the intention of the design
Milestone

Comments

@startailcoon
Copy link
Contributor

startailcoon commented Jul 10, 2018

Describe the bug
The vertical orderbook is at times jumpy when the centering isn't updated properly. There is at times a timedelay when the orderbook is populated before the centering is issued.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Exchange'
  2. Select BTS/bitCNY or any other high volume market
  3. See error

Expected behavior
Centering done without visual delay

Screenshots (LiceCap, wait for it)
bitshares-pricejumpy

Desktop (please complete the following information):

  • OS: W10
  • Browser Light Wallet - 180629
@startailcoon startailcoon added the [3] Bug Classification indicating the existing implementation does not match the intention of the design label Jul 10, 2018
@startailcoon startailcoon added this to the 180720 milestone Jul 10, 2018
@wmbutler wmbutler changed the title Exchange Vertical OrderBook Centering Issues [2] Exchange Vertical OrderBook Centering Issues Jul 16, 2018
@mattbeckman mattbeckman self-assigned this Jul 17, 2018
@wmbutler wmbutler modified the milestones: 180720, 180803 Jul 23, 2018
@startailcoon
Copy link
Contributor Author

startailcoon commented Aug 5, 2018

Any progress on this @mattbeckman?

@wmbutler wmbutler modified the milestones: 180801, 180815 Aug 6, 2018
@wmbutler
Copy link
Contributor

wmbutler commented Aug 6, 2018

I'd suggest that we remove the centering completely and let the user scroll determine where this is positioned. Thoughts?

@mattbeckman
Copy link
Contributor

Sorry, forgot I self assigned. I started work on it, and I think we should split the bid/ask/center so that we aren't trying to center vertically across a large set of rows. Separate scroll for top/bottom. I'll get a screen capture soon.

@startailcoon
Copy link
Contributor Author

By adding the following to the code here we can handle centering much better

        if (!this.props.horizontal) {
            this.setState({autoScroll: true}, () => {
                this.psUpdate();
            });
        }

This makes this redundant in the prepending statement on line 362

@startailcoon
Copy link
Contributor Author

@mattbeckman will you complete this issue?

I think we should just set the order book market price in the middle and have two separate columns that can be scrolled independently instead. This would remove the jumping of the middle column with the price.

Thoughts?

@wmbutler wmbutler modified the milestones: 180815, 180905 Aug 26, 2018
@wmbutler
Copy link
Contributor

@startailcoon that's the way it was before, but it doesn't make a lot of sense to scroll independently since the center is where the buy and sell meet.

@startailcoon
Copy link
Contributor Author

Right, but we need to make sure the center stay center and doesnt jump around.

Can we achieve that?

@mattbeckman
Copy link
Contributor

Only had a few intermittent evenings to hit this. I couldn't solve the jump factor consistently without splitting. Pulled out StickyTable, and I have it working, but I will need to confirm it's responsive.

@wmbutler
Copy link
Contributor

wmbutler commented Sep 5, 2018

@mattbeckman can you sneak this into the current sprint?

@wmbutler wmbutler modified the milestones: 180905, 180919 Sep 13, 2018
@mattbeckman mattbeckman removed their assignment Sep 14, 2018
@kapeer42
Copy link
Contributor

Can I claim this?

@mattbeckman
Copy link
Contributor

@kapeer42 Yes, but check with @startailcoon that it's still needed. I have a branch where StickyTable was pulled out of OrderBook, but OrderBook has been refactored since then, and due to conflicts may be faster to rethink it if the issue still exists.

@startailcoon
Copy link
Contributor Author

StickyTables are still present as before, even on the new Exchange Design, and the current issue is still present on it.

Give it your best crack @kapeer42 👍

@startailcoon startailcoon changed the title [2] Exchange Vertical OrderBook Centering Issues [2][kapeer42] Exchange Vertical OrderBook Centering Issues Sep 17, 2018
@sschiessl-bcp
Copy link
Contributor

@startailcoon
Please make sure this is also reflected in the new Exchange Design

@startailcoon
Copy link
Contributor Author

@kapeer42 @sschiessl-bcp As it was based on the new exchange design I've cherry picked the code for PR #1875 and merged it to its branch. However, it still seems to be a slight issue with the centering, please see my comment on #1875 (comment)

@kapeer42
Copy link
Contributor

kapeer42 commented Sep 24, 2018

@startailcoon I'm working on the issue on latest develop, will push soon

@startailcoon
Copy link
Contributor Author

There is no specific change to that part based on the new exchange design, so I wouldn't have any issue making it work once you have it ready.

@sschiessl-bcp
Copy link
Contributor

Perfect, thanks!

1 similar comment
@sschiessl-bcp
Copy link
Contributor

Perfect, thanks!

@wmbutler wmbutler modified the milestones: 180919, 181003 Sep 25, 2018
sschiessl-bcp pushed a commit that referenced this issue Sep 27, 2018
#1689 - Fix vertical order book centering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[3] Bug Classification indicating the existing implementation does not match the intention of the design
Projects
None yet
Development

No branches or pull requests

5 participants