Skip to main content
Topic: Add files two clicks promlem (Read 4380 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Add files two clicks promlem

Hi.

""Add files by dragging & dropping or selecting them"""  mause two click  taking up the browser 

(sometimes a single click)

https://yadi.sk/i/bo2o6a6RkAQmu
http://sendvid.com/cc7lu8ds
Last Edit: November 01, 2015, 02:22:44 pm by gevv
sorry for my bad english

Re: Add files two clicks promlem

Reply #1

I don't understand.  :-[

Re: Add files two clicks promlem

Reply #2

What browser?
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #3

hi,
chrome 46.0.2490.80 m and  firefox  41.0.2
sorry for my bad english

Re: Add files two clicks promlem

Reply #4

hmm... it looks like sometimes, for some reason, the click even is not attached to the "click here" thingy and doesn't fire when it should.
That's a rather odd bug I'd say.
I have no reliable way to reproduce it, it happened once after having cleaned my browser's cache, but after that, even clearing the cache again the problem didn't appear any more.
Can you try a "clear browser cache" you as well?
It may just be a bad cache file here on the site...
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #5

hi,

I try the problem continues

(+ other pc tested)
sorry for my bad english

Re: Add files two clicks promlem

Reply #6

I'm kind of out of ideas... @Spuds do you have any idea why sometimes the event is not attached to the tag? :-\
What happens is that sometimes, the first time you click on the text to attach a new file, instead of opening the "pick a file" system dialog screen, the click is actually a click on the <a> tag with an href as # that brings the browser at the top of the page.
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #7

That is caused by our 0 opacity input box (which is positioned on top of that input text) not exactly covering the text.

So if you click on the left side of what looks like a button, you actually miss the real (hidden) input select.  I think I fixed this in 1.1 and should backport it to 1.0.6.  But in the meantime open index.css and find the .drop_area_fileselect declaration.  In that there are two 160 values, change those to be 170 (yes one is a negative) and see if that fixes the behavior.

Re: Add files two clicks promlem

Reply #8

Ohhh...
It make sense.
But does that mean that the "clicking area" may break with different translations because the length of the "click here to attach" text may differ from language to language?
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #9

Yes ... we could use a js function to get the actual width of the "button" and then update the input CSS accordingly.

Re: Add files two clicks promlem

Reply #10

Quote from: emanuele – Ohhh...
It make sense.
But does that mean that the "clicking area" may break with different translations because the length of the "click here to attach" text may differ from language to language?

Didn't I mentioned this long time ago as a bug?

Re: Add files two clicks promlem

Reply #11

That's entirely possible. In fact it rang a bell when Spuds mentioned, but I was not quite sure... :(
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #12

Hi,

the problem continues
how do  disable "dragging dropping" option

Using the old system? 



thanks
sorry for my bad english

Re: Add files two clicks promlem

Reply #13

Change:
Code: [Select]
.drop_area_fileselect {
    position: absolute;
    margin-left: -8em;
to:
Code: [Select]
.drop_area_fileselect {
    position: absolute;
    margin-left: -9em;
and:
Code: [Select]
#chrome .drop_area_fileselect, #safari .drop_area_fileselect {
    padding-left: 160px;
to:
Code: [Select]
#chrome .drop_area_fileselect, #safari .drop_area_fileselect {
    padding-left: 180px;

That should tweak better the click and avoid that single letter out of the input area. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: Add files two clicks promlem

Reply #14

#chrome .drop_area_fileselect, #safari .drop_area_fileselect  ok change

not found

Code: [Select]
.drop_area_fileselect {
    position: absolute;
    margin-left: -8em;



existing

Code: [Select]
.drop_area_fileselect {
   cursor: pointer;
   margin-left: -160px;
   opacity: 0.0001;
   position: absolute;
   width: 160px;
}
sorry for my bad english