246 questions
1
vote
1
answer
77
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
0
answers
55
views
Reliably detect pen, hand or mouse
Use case:
User should be able to draw hand signature on any tablet using web app, however only a digital pen should be allowed for drawing.
Can the aforementioned requirement be reliably implemented ...
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
When using stylus, pointermove event does not update target upon entering child [duplicate]
In the snippet below, the circle disappears if either (1) I click inside the circle and move the mouse or (2) I click outside the circle and move the cursor into the circle while holding down the ...
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 ...
2
votes
0
answers
188
views
Is there any way to get setPointerCapture to work with artificial pointer events?
I'm working on a browser extension that creates artificial pointer events and sends them into the page using dispatchEvent like so:
function myCreatePointerEvent(pointerId, isPrimary, screenX, screenY,...
1
vote
2
answers
474
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
1
answer
620
views
Pen pointer events in Linux Chrome and Firefox not working as intended
I'm writing a cross-platform JavaScript-based drawing tool and run into severe problems on Linux.
First, Google Chrome's pointer events do not distinguish between the regular tip and the eraser end.
...
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
86
views
Pointermove event not returning element index on touch
I'm trying to let users change some dot colours on a d3.js SVG chart.
It seems current element index is not being updated continuously in the pointermove event function on touch while for example ...
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 ...
-1
votes
1
answer
60
views
Hover & Click on overlapped SVG's
I have a div with several SVG's textPaths that are overlapped with a position absolute. The problem is that I can hover and click in all of them in Google Chrome, but not in Safari (the ...
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
vote
2
answers
2k
views
Javascript drag and drop not working with pointer events
I am new to javascript and web development a whole, so I am sure there is a concept I am missing here and hopefully an easy way to fix this. I am using pointer events for drag and drop and it seems ...
-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
1
answer
51
views
How to apply pointer-events for only one underneath element
I have below code:
<div className="my-div" />
<button className="my-btn1">this button should be clickable</button>
<...
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
1
answer
678
views
how to hover a pointer-events:none / another way to solve this mystery
I have 4 elements on top of each other, with the following opacity settings (from bottom to top):
id - 0
id - 0
div - 1
text - 1
I need that by hover element 2, the changes of the opacity settings ...
0
votes
0
answers
557
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
1
answer
283
views
How to change/override property pointer-event in a Vaadin dialog
We have a third party application (launch button only) which is always shown on top most in our application. It works fine except for modal dialogs which prevent interaction. After some digging, we ...
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 ...
4
votes
1
answer
2k
views
Using W3C PointerEvent API and be able to detect a double click?
Writing a rich web application I have the need to support all types of users, some are using a mouse, some are using a touch screen (e.g. on a mobile device). So the W3C PointerEvent API is exactly ...
1
vote
0
answers
128
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
votes
1
answer
818
views
Using canvas pointermove event on phone, the pointerleave event gets fired [duplicate]
I am just trying to draw on my phone using "pointer" events.
This works on my desktop with my mouse, but not on my (android) phone.
I should be able to draw curved lines, but dragging 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 ...
0
votes
5
answers
3k
views
How to fix pointer event error ? React Native
I've been getting this error in mac M1 laptop , meanwhile it is fine with my other device
I've been stuck here and cant fix these error , please help
Also there is this error "Requiring module &...
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 ...
0
votes
0
answers
71
views
svg tooltips aren't showing when pointer-events: none; is used
How do I fix this so that the tool tip is able to be seen?
If I remove pointer-effects, then the video is not able to be clicked.
How the code works is, you click on the play image and a video appears....
1
vote
1
answer
281
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 = '...
1
vote
0
answers
390
views
React material ui: how to disable pointer capture when touching and dragging outside a Card?
I'm using React, and have a material UI Card that toggles on and off when clicked. I am trying to 1) get the card to toggle on/off correctly if the user long-presses it, and 2) disable the card ...
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
0
answers
197
views
Custom-named mouseEvent and pointerEvent does not read the real state of modifier keys when previously created and programmatically dispatched
Disclaimer: I have found a working solution, this question is more of a RFC from a frontend newbie to the more experienced folks to see if there may a better solution and/or issues with the workaround ...
1
vote
1
answer
961
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
315
views
here map pointerenter not working with polyline grupe, but tap is working
I try to do arrow polyline (like here https://developer.here.com/documentation/maps/3.1.30.17/dev_guide/topics/routing.html -> Show route direction arrows). And I want to add to this routeLine ...
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 ...
0
votes
0
answers
184
views
Pure CSS carousel behaves incorrectly if there is an overlapping element with pointer-events: none (Chrome and Android)
In my testing so far Chrome with mobile inspector or actual Android phone (my Pixel 6) both are experiencing incorrect dragging behavior if there is an overlapping element that has pointer-events: ...
1
vote
1
answer
806
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
1
answer
2k
views
'pointerup' event not firing on desktop, works fine on mobile
I'm trying to come up with a cross-device code that handles pointer events.
I'm running this code successfully on Chrome/Android (using USB debugging), but the Chrome desktop just acts up and keeps ...
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 ...
2
votes
0
answers
437
views
How to handle PointerEvent for stylus and touch at the same time?
I tried to use Pointer Events to handle both stylus pen and finger touch simultaneously on touchscreen like phone, tablet. The use case is when drawing using pen, user can use finger for quick ...
12
votes
1
answer
22k
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 ...
1
vote
1
answer
713
views
Phaser 3 Multiple Pointer Events in one
I currently have two pointer events which essentially do the same thing:
gameState.idle.on('pointerout', function(){
scene.sys.canvas.style.cursor = 'default';
gameState.pet_cursor.alpha = 0;
}...
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 ...
6
votes
2
answers
3k
views
no pointerenter event if you touch and then move into element
I'm trying to build a React app where a user touches one element and then moves to a neighboring element while still holding down. The pointerover and pointerenter events fire when the user touches ...
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 ...
3
votes
0
answers
712
views
Is it possible to listen to DragEvent and PointerEvents together?
I have noticed that while listening to both drag events and pointer events, when drag starts, the pointer events are not caught.
<div id="canvas" draggable="true" ondragstart=&...
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
1
answer
2k
views
PointerEvent stops firing after a short time
I'm currently trying to get a similar touch/stylus behaviour to Squid (the notetaking app). I have used the PointerEvent API and it all works, except for one annoying issue:
After I put down the ...
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 ...
15
votes
1
answer
2k
views
Setting pointer-events dynamically on iOS 15 Safari is unreliable and unpredictable
In Safari on iOS 15, links that are in a container that has pointer-events: none; applied, don't become tappable when pointer-events is set to all dynamically at a later stage. Actually, in some cases ...