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

Bug: Using touch events triggers infinite console errors and removes click events #59

Open
valkyriaivan opened this issue Jun 15, 2023 · 0 comments

Comments

@valkyriaivan
Copy link

Describe the bug

I'm currently using the included SVGViewer, but when using touch events like in mobile/tablet, it triggers infinite console errors and renders unusable click events like Match details and onPartyClick.

To Reproduce

Use the SingleEliminationBracket (might happen in the other one, but haven't checked), use the included Match component and SVGViewer. Then configure chrome to use touch events.

Code

<SingleEliminationBracket
          options={{
            style: {
              boxHeight: 150,
            },
          }}
          onMatchClick={(m) => {
            console.log(m);
          }}
          matchComponent={Match}
          matches={matches}
          svgWrapper={({ children, ...props }) => (
            <SVGViewer
              width={width}
              height={height}
              SVGBackground={"rgba(0,0,0,0)"}
              background={"rgba(0,0,0,0)"}
              {...props}
            >
              {children}
            </SVGViewer>
          )}
        />

Priority

It seems to trigger errors but the scroll seems to work fine, but it seems to eliminate all click events like Match Details which can't be clicked.

Screenshots/Video

4872d91d65d16eba253040c8a4fb1fd5.mp4

Versions

  • react-tournament-brackets ^1.0.30
  • React ^18.2.0
  • Node v16.18.0

Conclusion

It seems like a SVGViewer problem since I have checked and it can be configured in the original library. But I was wondering if someone has encountered this before and has a way to fix it only using the provided components or if there is plan to include it out of the box.
Thanks!

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

1 participant