Questions tagged [click-through]

Description

Click-through means that you can click through something. Normally, the things behind it can then be clicked (or selected), while normally they wouldn't be clickable, because the element in front of it would catch the click-event [1].


CSS

To make something click-through in CSS, many use pointer-events: none;, which means that, when an element is clicked, a pointer event (in this case, a click-event [1]) will not be fired. Instead, you can click (or select) the elements behind it. This is basically useful for (partly or semi-)transparent images.

It is also used to simply disable click-functionality (disabled links for example). Mind though, when using pointer-events: none; you disable all pointer events, not only the click-event (which is necessary for a click-through element); hovers and other pointer events will be ignored as well.

[1] Basically an event saying "Hey, I have been clicked!".

69 questions
59
votes
6 answers

Navigation drawer - Disable click through on items behind the drawer

Is there any way to make sure that the navigation drawer stays on top of the content in the fragment? I created a small test application with dummy data. 10 fragments with a corresponding numbered button and textview. The issue is with the fact…
17
votes
2 answers

How to make non-interactive graphical overlay on top of another program in c#?

To give some background, I am developing a piece of software that assists players with the game Star Wars: The old republic. The game has very limited user interface capabilities, so i am developing an external application that will parse the log…
Adrian
  • 183
  • 1
  • 1
  • 6
14
votes
2 answers

Make iframe click-through, but not the iframe's body

How can I make an iframe click-through, but make that iframe's body still be clickable? I tried: iframe.style.width = '100%' iframe.style.height = '100%' iframe.style.display = 'block' iframe.style.position = 'fixed' iframe.style.backgroundColor =…
Forivin
  • 14,780
  • 27
  • 106
  • 199
14
votes
3 answers

Make OSX application respond to first mouse click when not focused

Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when…
user21737
  • 141
  • 1
  • 5
9
votes
1 answer

make a foreground view click-through

I don't find the way to make this work. My application has 2 FrameLayouts with many child views (suppose ImageViews for simplicity), stacked one over the other. My problem is, I need the FrameLayout on TOP and ALL ITS CHILDREN to let touches pass…
rupps
  • 9,712
  • 4
  • 55
  • 95
9
votes
3 answers

Java: Making a window click-through (including text/images)

I want to create an overlay in Java that is transparent, always on top, and that I can click-through. I've found some similar posts about this issue, but even after following their answers, I'm having one issue. My problem is making the whole window…
Carl Johnsson
  • 91
  • 1
  • 3
8
votes
2 answers

WPF - how to create click through semi transparent layer

I want something like this for a screen recording software. My sample wpf window looks like this
Riz
  • 6,746
  • 16
  • 67
  • 89
7
votes
1 answer

Android: Able to Click through the nav drawer?? AppCompat v7:r21

When I open my navigation drawer in an android app I created, I'm still able to click on list items in my main layout (The content layout). I mean, I am actually able to click on a ListView item through my navigation drawer. I don't have any…
4
votes
1 answer

How to disable clicking through item in qml?

The application I currently work on has a map as a background, and above it various other dialogs(views) with more than one view inside can be opened. When some of the dialogs is active, when dragging over it's background map is moving like there's…
IvanaN
  • 43
  • 1
  • 4
4
votes
1 answer

WPF Send click through control

I want to send a mouse click to the application behind a control. I have a Topmost transparent window and some controls in it. I would like to be able to send click through some of that controls. I have already tried setting the property…
kevin
  • 988
  • 12
  • 23
3
votes
2 answers

Click-through tkinter windows

The function is copied from Tying to set non-interactable (click-through) overlay with TkInter Not only is the window not click through, the png is also not transparent. PNG is here:…
Tony Qu
  • 51
  • 6
3
votes
2 answers

Click-through with hover effect in CSS

I'm trying to make a button without a link, as the background is already linked. Therefore you should be able to cick through it. I know about pointer-events:none but when using this, the div's :hover won't work anymore. Is there any way to achieve…
Jo Hannes
  • 55
  • 2
  • 10
3
votes
1 answer

Qt Window Transparency

I have a top level Frameless QMainWindow with Translucency. I have the undesirable effect of click-through (to the underlying window) in the transparent portions of the window. int main(int argc, char *argv[]) { QApplication a(argc, argv); …
user1055604
  • 1,624
  • 11
  • 28
2
votes
0 answers

Non-transparent click-through window in Win32

Is it possible in Win32 to create non-transparent window, which is click-through (sends click events to what lays below)? I tried to catch WM_NCHITTEST message and return HTTRANSPARENT, but it doesn't work.
mic1248
  • 21
  • 2
2
votes
1 answer

Tying to set non-interactable (click-through) overlay with TkInter

I've gone through several other posts regarding similar issues and all seem to point to this code. Since, I'm working on creating a desktop overlay, I setup a short program to create a top window and hopefully isolate the issue but, despite my…
Matt
  • 49
  • 5
1
2 3 4 5