norgepaul / TChromeTabs

Comprehensive Delphi implementation of Chrome's tab system
Other
215 stars 78 forks source link

Tabs not responding (visually) to click. #91

Open sielo opened 3 years ago

sielo commented 3 years ago

Hi,

I've been using TChromeTabs for a while and found it very useful. But I have one problem. From time to time the tab becomes inresponsive to click. But only in "visual". I click it - the application changes the view according to clicked tab but this tab doesn't become active (on the screen). Here is how it works:

  1. I open one active tab (or more of them) ;
  2. I open one additional (in the background) so it doesn't become active. It shows ok. The animation works. Caption and glyph shows. The tab looks completely normal.
  3. When I click this inactive tab - it stays inactive, but it responds to click. So the view changes correctly. And it responds to "close button" on the tab although there is no "hover over" animation over the "X" button (closing the tab). Like it was "frozen".
  4. in addition to that - the "+" (new tab) button also stops responding to "hover over", but when I click it - it works fine. So when it comes to actions - everything is OK. But the "graphics" and "animations" stops working at all. Like all the tabs become disabled (frozen) visually. It happens from time to time. Not always. And the number of tabs doesn't matter. Sometimes it happens with the second tab. Sometimes with 4-th. I don't use threads that could operate on the tabs in the background. I open new tab in main thread. There is no AV error or any other kind of error. My application works fine all the time but the TChromeTabs don't respond visually to actions. What am I doing wrong ?
landrix commented 3 years ago

do you use the current sourcecode?

sielo commented 3 years ago

Nothing changed unfortunately. Still from time to time the tabs are frozen although every actions (click, close, add) work fine. When I close a tab when everything is frozen - than this closed tab doesn't hide. But the "+" button moves ("virtually " not on screen) to the left like the tab was gone. When I click the place when the "+" should be after closing a tab - it works. When I close two tabs - the "+" is just after the tab that is open although on the screen I see the close tab. See the image:

screen

Tab 1 should be active. Tab 2 should be notactive. Tab 3 should be gone as I closed it. The popup menu is shown in the place when "add tab" button is pressed. So this "+" button is virtually in good place but as You can see - on the screen it is right after removed tab. The removed tab of course is not responding because it is gone.

landrix commented 3 years ago

Do you have enabled

Options.Display.Tabs.TabWidthFromContent := True

? If yes, what happens, if you set it to false?

sielo commented 3 years ago

The value of "TabWidthFromContent" doesn't matter.

sielo commented 2 years ago

This problem hasn't been solved yet. Do we have any solution to this issue? How can we act to prevent it from happening ? This is only visual "freezing". Events are fired correctly. Maybe I should use some function to "lock" the TChromeTabs while adding a new tab (in the background) ?