246 questions
1
vote
1
answer
73
views
Angular using MouseEvent instead of PointerEvent it TypeScript
When I started learning AngularJs i ran into something weird
in a component when i write a click event and get send the $event as the parameter the type of event has to be MouseEvent in the TS file, ...
0
votes
1
answer
68
views
CSS pointer events and spacebar
When I add pointer-events:none; to video (just to temporarily disable controls), if focus is on play button, spacebar still triggers play.
is this intended behavior?
what would be the cleanest to ...
0
votes
0
answers
41
views
Preventing ScreenShot on websites connected with acounts
After a long search I couldn't find a way to prevent screen capture (there is only drm for videos and not free).
So, Can we use gotpointercapture event because it has a pointerType property and its ...
1
vote
2
answers
470
views
How to keep the focus (in/out) of my drop-down lists
I'm trying to create a dropdown list of buttons that only show up when the mouse pointer hover on the first button that is not hidden, and the dropdown list disappear when pointer leave when it no ...
2
votes
5
answers
135
views
Can't click though HTML element to buttons
I'm working on a portfolio website and want to click a few buttons towards the middle of the page that reference course names, but I'm unable to click through the element, even with pointer-events:...
1
vote
1
answer
465
views
Position of element following cursor offset by container content
I am trying to create a drag and drop feature that is a child component within a modal where the currently dragged item follows the position of the mouse, however, the position of the mouse is being ...
0
votes
1
answer
1k
views
Relation between mouse, touch and pointer events in Javascript
Trying to get event handling correct for a web app that should work equally well with mouse and touch events, I started using pointer events where mouse and touch handling should be basically the same....
-1
votes
1
answer
418
views
How to Change Background Image of a Div Element with Pointer-Events: None When It's Clicked?
I'm creating a mobile landing page by using a combination of two third-party pages embedded in iframes. One of the iframes has been optimized to display a volume button in 50x50 dimensions. The ...
0
votes
2
answers
349
views
How can I disable anchor pointer events while keeping them for anchor children?
I have an anchor element that has several children inside. Requirements changed and now anchor might or might not have a link on it. The easiest way to change it would be to disable click events for ...
0
votes
0
answers
556
views
How to change body style "pointer-events" to "auto" whenever OverLay is shown in Vaadin Flow?
Many components, such as Dialog, MenuBar, ComboBox, DatePicker, TimePicker and etc, use an ovverlay when it is opened. For example, when a menu item is clicked, menu is shown, and an overlay is added ...
0
votes
0
answers
44
views
Pointer-events : Enable and Disable selectively. CSS
In following Next.js Component i want to add hover effects to the .itemCard and the button only. Those two must have diffent hover effects.
(ex- itemcard will have a box-shadow effect and the button ...
1
vote
0
answers
127
views
How do I make an absolut positioned touchable element on top of a FlatList catch only press events and let other events propagate to the FlatList?
I have a FlatList in React Native with fullscreen image and video items (with pagingEnabled). I want to have a short descriptive touchable text floating on top of the FlatList, to open up a view with ...
1
vote
1
answer
47
views
How to exclusively style parent or child when hovering over either of them?
I have some very simple HTML that looks like
<div id="parent">
<a href='#link' id="child">Child</a>
</div>
I want to style the parent when hovering ...
2
votes
1
answer
102
views
How to allow highlighting of HTML text when covered by transparent div?
I have a React application in which I have a transparent div covering text. The transparent div acts as a dropzone for draggable elements. There are also some children elements that may contain some ...
1
vote
1
answer
279
views
Restrict the clickable area of an SVG to its visiblePainted contents
I have a simple SVG that contains a triangle and toggles its fill color when it's clicked:
const toggleFill = (element) => {
if (element.style.fill === 'silver') {
element.style.fill = '...
6
votes
0
answers
2k
views
Is there a css equivalent of pointer-events but for keyboard events?
I am trying to make readonly, but not disable, all types of form element only using css and html (i.e. no javascript).
Some things (like inputs) are easy - the readonly attribute on the input does it. ...
1
vote
1
answer
960
views
Click event does not work with custom cursor
I am trying to create a custom cursor on a website (a blurry yellow spot). I created a div in HTML for the custom cursor and styled it in CSS. I gave the 'cursor: none' property to the body tag to ...
0
votes
1
answer
407
views
How can I detect an element underneath an image that I am dragging within a Pointer Event?
I have dynamically created a chess board using JavaScript with all the pieces in their starting squares. I have worked out how to get the pieces to move around on the board but cannot figure out how ...
1
vote
1
answer
800
views
Large delay between Canvas `pointerdown` and `pointermove` events with stylus
I'm trying to create a very basic sketch pad using an HTML Canvas and pointer events. I've implemented a very basic codepen that demonstrates the issue at hand. The key functionality draws a red dot ...
1
vote
0
answers
99
views
"Failed to end tracking the pointer, because it is not being tracked" exception in PointerPressed
I am getting the above mentioned exception in PointerPressed that too only in the case of MFC application hosted using XAML Islands. In normal UWP application it is working fine. Essentially no other ...
12
votes
1
answer
21k
views
pointer events vs touch and mouse events
I'm building an interface that should work with mouse or touch. My user may have difficulty hitting their desired target because of a variety of physical issues.
Pointer events seem perfect for this ...
2
votes
0
answers
206
views
How can I debug/emulate Pointer Events?
I'd like to support multi touch and pen/stylus input for my application using Pointer Events.
Is there a way to debug touch/pen input on a desktop without any input hardware like this? I would like to ...
0
votes
0
answers
639
views
pointer-events: none except for the click event
End Goal: I'm trying to manipulate an element inside an svg from a library I'm using. The element has drag and drop capabilities, but also shows a pop-up on click. I would like to disable the drag and ...
0
votes
4
answers
1k
views
How do you make an anchor link inside tag non-clickable or disabled?
I have an anchor link that was inbuilt with a <i> tag, as I know we can disable/prevent click with different methods on the anchor tag. But my question arises can we prevent the click only for &...
2
votes
0
answers
567
views
Pinch/zoom with pointer events in Javascript clarification
The pinch/zoom example on MDN using PointerEvents looks easy enough, yet looking a bit closer, I wonder about the following.
If two touching fingers are moved simultaneously with fixed distance, I ...