![]() |
#1 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Having difficulty moving .html files in Book Browser in 1.1.0
It used to be easy to adjust the .html files order in the Book Browser by left clicking and dragging on the file. Now it works like only 10% of the time. Is there a different/better way of adjusting their order?
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,735
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Click on them and start to drag. Wait momentarily for the drag animation to start. Move to where you want in the spine order and release. This works just fine in my machine (a mac). What platform are you using?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,947
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
OS is Windows 10, x64. Sigil is 1.1.0 x64 |
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,707
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Interesting, I thought it was just me… becoming even more mouse averse.
In recent times its been my perception that dragging things around in the calibre ToC tree and CSV catalogue column list has become more difficult - possibly since version 4.0 - so I've stopped doing it. The ToC tree also has move up/down arrows, so I use those to reorder items. For the CSV catalogue, I defer the column reordering until I get the CSV into CSVFileView. Now I'm wondering if it's a Qt effect. Window 10 Pro 64 bit 1909 BR |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,021
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I also noted that trying to move to the #1 slot was a pain (can't go above easily).
My work around: Move to #2 slot, then drag #1 down to #2 slot |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The problem is that the tabs are often too touchy on different platforms. The slightest twitch of the mouse when clicking on a tab will often result in tabs being moved/reordered. So we increased the distance necessary for a drag event to be registered as a drag. We did that back when crashes related to tab reordering was common. Unfortunately that's an app-level setting. It affects all drag distances. And it's often a different default on different platforms. I'll look into making it a user preference so people can choose their own happy-medium.
Speak up folks! Don't suffer in silence. The worst that can happen is I'll tell you to get stuffed. ![]() |
![]() |
![]() |
![]() |
#7 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm thinking the best plan might be to give users the ability to turn off tab reordering on the main tab manager widget, as well as having the option to tweak the startDragDistance.
I never reorder the tabManager tabs myself, and even though the startDragDistance is a teensy bit off-putting on my Linux system (in Book Browser with our current setting), the Tabs are still pretty touchy. I have to be careful so as not to go flinging them around when I'm trying to quickly close them. Being able to turn off tab reordering should theoretically allow me to be able to set a much more comfortable startDragDistance for the Book Browser. Those who need/want both will just have to choose whatever happy medium the current version of Qt will allow them to choose. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,735
Karma: 5703586
Join Date: Nov 2009
Device: many
|
If you decide to go that way, please ifdef it so macOS users are left alone. I do not think the drag distance requirement impacts tab reordering that much as it seems to pretty well ignore it.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's actually the inactive tabs that act very twitchy for me. When I try to click on one to activate it (Windows or Linux) I have to be extremely careful about not moving the mouse even one tiny little bit, or they will jump to the left or the right. Grabbing the active tab and dragging it seems to honor the startDragDistance quite nicely. So maybe this is something else entirely.
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@KevinH: got a spur-of-the-moment (not-very-well-thought-out) what-if for you.
In my mind, there is no need to be able to reorder any tab other than the one that is currently active. If one had to first activate a tab and then grab it again in order to move it in relation to the others, this whole twitchy inactive tabs thing wouldn't be an issue. Since we already subclass QTabBar and reimplement a few things, is there any way could reimplement something that could prevent moves for any tab that wasn't already active when first clicked? I know that's vague as heck, but I don't have any of Qt's QTabBar source in front of me. ![]() |
![]() |
![]() |
![]() |
#13 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,735
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Interesting idea.
I will look into it when I get home from work tonight. There should be a way to handle that but we may to to overload the original QTabBar drag and drop routines with our own code that screens tabs our if not the current tab. KevinH Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,735
Karma: 5703586
Join Date: Nov 2009
Device: many
|
From the Qt QTabBar docs, this looks interesting:
Code:
changeCurrentOnDrag : bool If true, then the current tab is automatically changed when dragging over the tabbar. Note: You should also set acceptDrops property to true to make this feature work. By default, this property is false. This property was introduced in Qt 5.4. Access functions: bool changeCurrentOnDrag() const void setChangeCurrentOnDrag(bool change) |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I saw that, but was (perhaps mistakenly) thinking it would need to be false to help us (which it already is by default). Making it true never occurred to me. It already becomes active whenever I accidentally "twitch" one anyway, but perhaps there's some internal timing at play which enabling changeCurrentOnDrag would affect.
I was also interpreting that description a little differently when I first read it. I was assuming that it was talking about dragging another object over top of a QTabBar. Easy enough to test, though. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks Kindle browser to read html files | l1n1234 | Amazon Kindle | 23 | 01-28-2012 11:00 PM |
PRS-950 Can PRS-950 web browser view local HTML files? | roc | Sony Reader | 3 | 04-02-2011 10:58 AM |
Browser doesn't load local HTML files? | kenjennings | enTourage Archive | 1 | 02-19-2011 09:52 AM |
Difficulty with conversion of HTML | ficbot | Calibre | 8 | 03-23-2009 09:34 AM |