reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Mouse click event is triggered more slowly on AccordionItem in DrawerBody.

Open wbfw109 opened this issue 3 years ago β€’ 1 comments

Describe the bug I have 60+ nestable AccordionItem components and I bind index and click event. I tested in pc run (dev environment). (It is not occurred in Production mode)

  • in index layout, (mouse down ~ mouse click event) time is between 0.35 and 0.45 seconds.
  • but, in DrawerBody, (mouse down ~ mouse click event) time is between 0.7 ~ 0.8 seconds.

To Reproduce

class MyState(pc.State):
    mouse_down_start_time: float = 0.0

    def mouse_click_event(self, index: int) -> None:
        print(time.time() - self.mouse_down_start_time)
    def mouse_down_event(self) -> None:
        print("mouse down event")
        self.mouse_down_start_time = time.time()

Expected behavior It must be faster even if in DrawerBody.

Screenshots image

Specifics (please complete the following information):

  • Python Version: 3.11.0
  • Pynecone Version: pynecone-io = "0.1.13"
  • OS: WSL Ubuntu 22.04 distribution in Windows 11 Version 21H2 (OS Build 22000. 1455)
  • Browser (Optional): Edge Browser
  • Shell: Fish shell
  • Node Version: 18.12.1

Additional context Add any other context about the problem here.

wbfw109 avatar Jan 27 '23 18:01 wbfw109

Got it we will investigate, thanks for pointing it out

Alek99 avatar Jan 28 '23 00:01 Alek99