TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.97k stars 1.18k forks source link

Allow drag and drop to be disabled #591

Closed Jermolene closed 1 year ago

Jermolene commented 10 years ago

For some applications we'd like to avoid end users accidentally dragging links and images.

Spangenhelm commented 10 years ago

+1 Giving user the choice is always a good idea! And, for easier use, make a "recommanded" choice selected by default, for those who don't know / don't care what they should choose.

Spangenhelm commented 9 years ago

I think it is fixed now (version 5.1.4) we can close this issue.

Jermolene commented 9 years ago

Hi @Spangenhelm I think we still lack a means to disable the draggability of links.

Spangenhelm commented 9 years ago

@Jermolene

I think we still lack a means to disable the draggability of links.

Not sure to understand, i guess you speak about not even having the "import" tiddler showing up ?

..we'd like to avoid end users accidentally dragging links and images.

The issue here is: how would you know if it is accidental ? We would need a option in config panel to "lock/unlock" this feature, not sure if it will be any better than the actual behavior ("import" tiddler with save/cancel options)

Jermolene commented 9 years ago

Not sure to understand, i guess you speak about not even having the "import" tiddler showing up ?

The problem is that it is too easy to accidentally start dragging a link with the mouse. This is particularly a problem if making a wiki for other people to use, and you don't want them to get confused by the unexpected behaviour. So, yes, a configuration option was how I was envisaging fixing this.

Spangenhelm commented 9 years ago

if making a wiki for other people to use, and you don't want them to get confused by the unexpected behaviour.

With or without the option we can add an explaination of what is going on directly to the import tiddler when dragging.

And, as always: give user the choice by having a way to prevent the display of this message everytime, which could be rapidly annoying for average user. Something like a questionmark and a tooltip might do the work. At last, a link pointing to the tw section talking about importation would complete it (as a reminder or as a way to learn tw for new users)

Jermolene commented 9 years ago

With or without the option we can add an explaination of what is going on directly to the import tiddler when dragging.

That all requires quite a lot of mental processing for a beginner to understand why the import tiddler opened, read and understand the text and get rid of it.

Spangenhelm commented 9 years ago

That all requires quite a lot of mental processing for a beginner to understand why the import tiddler opened, read and understand the text and get rid of it.

I'm afraid that this might happen too with the option:

To be honest i don't know what's best this is a difficult position but as a new user, i would never ever guess that making a copy by drag n drop this way could work.

Jermolene commented 9 years ago

Hi @Spangenhelm we're slightly talking at cross purposes. I'm not suggesting that we turn off drag and drop at tiddlywiki.com. This ticket is about when we use TiddlyWiki to build special purpose applications for people to use without them being aware that it is TiddlyWiki. It's not a great example, but http://tiddlywiki.com/prerelease/editions/introduction/ is a custom presentation built out of TiddlyWiki. It's designed to be usable by people who don't need to know that it is a TiddlyWiki. We might expect that people clicking through a presentation would be mighty surprised if mis-clicking a link opened up a baffling $:/Import window.

tobibeer commented 9 years ago

In your example, I managed to click on a link in one of those rotated preview tiddlers, I believe Customization, which brought me to...

$:/core/ui/TiddlerInfo/Tools 1

...in edit mode, out of which the only escape was to reload the page.

Jermolene commented 9 years ago

@tobibeer links are supposed to be disabled within the Cecily view. But there are plenty of rough edges; the tiddlers are live and interactive.

tobibeer commented 9 years ago

So, perhaps disable whichever-buttons, too?

Jermolene commented 9 years ago

@tobibeer I was just using the "introduction" edition as an example of a packaged edition of TW. Making it tamper proof isn't a goal at the moment.

Spangenhelm commented 9 years ago

Hi @Spangenhelm we're slightly talking at cross purposes

That is right, i have omitted the mention of For some applications.. i have spent the last two days jumping from one issue to another and i really feel the need to take a break ;) +

Jermolene commented 9 years ago

Hi @Spangenhelm your feedback is really useful, don't be discouraged!

pmario commented 1 year ago

@Jermolene -- We do have a hidden setting: Disable Drag and Drop. It works but the setting is not respected everywhere in the core UI at tiddlywiki.com

IMO this issue can be closed, but a new one should be created: eg: Disable Drag and Drop should be respected by the whole core UI

Jermolene commented 1 year ago

Thanks @pmario