View Issue Details

IDProjectCategoryView StatusLast Update
0033872CommunityOCCT:Application Frameworkpublic2025-02-10 16:06
ReporterHyarius Assigned Toika  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.8.0 
Summary0033872: Double click not recognized after a long first click
DescriptionCurrently, in the AIS_ViewController, we have the method UpdateMouseButtons (AIS/AIS_ViewController.cxx:712)

Inside it, the library increment the index by one each time we trigger a mouse button, we increment a counter by one. And this counter is only reset when the mouse click is detected as a double click. Which happen only if the counter is 2 and the timer is not elapsed.

Now, we have a problem : when the user click on the view, don't release the button for a long period of time (~200ms), don't move the mouse, than release the button, we cannot receive any double click anymore : the counter has been raised to higher than 2, and therefore cannot go back to 0 as we don't detect any double clicks.

We propose to change this by editing the function as proposed in the attached files.
Steps To ReproduceBug generation :
1) Press any mouse button received by the AIS_ViewController on the view (Let's say the right click for this exemple)
2) Don't release the button, do not move it, for longer than the duration of the double click
3) Once this duration is passed, release the mouse button
4) Try to double click - It shouldn't be detected
Additional information
and documentation updates
I added comment inside the corrected code, just to be sure that i explained the modification correctly.

If i am not clear, don't fear to ask me for more informations =)
TagsNo tags attached.
Test case number

Attached Files

  • AIS_ViewController.cxx (119,217 bytes)
  • AIS_ViewController_corrected.cxx (119,331 bytes)
  • AIS_ViewController_corrected-2.cxx (121,267 bytes)

Activities

Hyarius

2025-02-10 13:37

reporter  

AIS_ViewController.cxx (119,217 bytes)
AIS_ViewController_corrected.cxx (119,331 bytes)

Hyarius

2025-02-10 13:57

reporter   ~0116958

I just saw that i didn't send the correct version of the corrected file, please read the one linked in this message instead
AIS_ViewController_corrected-2.cxx (121,267 bytes)

dpasukhi

2025-02-10 14:26

administrator   ~0116959

Last edited: 2025-02-10 14:27

Dear @Hyarius the main issue tracker going to be GitHub issue for community and Jira for clients.
If it is possible, could you please create issue on GH? https://github.com/Open-Cascade-SAS/OCCT/issues
If not - then when the issue is moved to "in progress" we will create a copy manually. And notify you here

Hyarius

2025-02-10 16:06

reporter   ~0116960

I created the issue on GitHub, at this link :
https://github.com/Open-Cascade-SAS/OCCT/issues/356


Hope it's correctly composed =)

Issue History

Date Modified Username Field Change
2025-02-10 13:37 Hyarius New Issue
2025-02-10 13:37 Hyarius Assigned To => ika
2025-02-10 13:37 Hyarius File Added: AIS_ViewController.cxx
2025-02-10 13:37 Hyarius File Added: AIS_ViewController_corrected.cxx
2025-02-10 13:57 Hyarius Note Added: 0116958
2025-02-10 13:57 Hyarius File Added: AIS_ViewController_corrected-2.cxx
2025-02-10 14:26 dpasukhi Note Added: 0116959
2025-02-10 14:27 dpasukhi Note Edited: 0116959
2025-02-10 16:06 Hyarius Note Added: 0116960