Preventing Element Selection

Discussion and feedback on Construct 2

Post » Fri Dec 16, 2011 3:40 am

Ashley just found a solution for the problem of selecting elements outside of canvas when using clicking repeatedly. Solved all my complains about locking mouse to canvas :D Maybe it could be added by default in the HTML on next release ? Just put this on style tag

body
{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
   user-select: none;
}

This will prevent selecting all elements on page. You can still click on them of course. Tested it on Chrome, Firefox and IE9. In Chrome and FF it works perfectly. IE9 doesn't seem to implement it yet.
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Fri Dec 16, 2011 3:43 am

I'm not sure about adding it as a default, because unselectable pages can feel very unnatural and since many users copy+paste the exported HTML without looking too closely it could end up spreading and making entire pages unselectable. I think it's better people apply this on their own.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Fri Dec 16, 2011 3:54 am

That's what i thought :) I'll have to custom make my html5 to make it work like i want. Or just make it fullscreen :)Kiyoshi2011-12-16 03:56:48
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Fri Dec 16, 2011 5:08 am

As I mentioned in the exe thread, expanded export settings would imo be a good idea for the future. Making it easier for the user to customize the exported page, including preventing selecting element as well as cosmetic stuff.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Fri Dec 16, 2011 7:36 am

[QUOTE=inkBot] As I mentioned in the exe thread, expanded export settings would imo be a good idea for the future. Making it easier for the user to customize the exported page, including preventing selecting element as well as cosmetic stuff.[/QUOTE]

Why stop at the exporter? As it stands C2 is aimed at just the canvas element, but there's no reason that certain objects can't be applied outside the canvas at some future date.
If that ability were added, you could simplify things like that as an object/ plug.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Dec 16, 2011 12:59 pm

Thanks Kiyoshi
B
30
S
15
G
10
Posts: 285
Reputation: 7,144


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium, Mkwsmsk, Yahoo [Bot] and 1 guest