Comments (11)
It works when disabling Emulate Touchscreen in Chrome Canary Emulate panel. Added some meta tag to disable pinch.
Still not working on iPad.
from ui-layout.
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty];
Cannot read property 'clientY' of undefined
from ui-layout.
This fix worked for me for enabling touch on IOS
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty] || mouseEvent.originalEvent.targetTouches[0][mouseProperty];
from ui-layout.
Thanks, I will post my solution too. It should be similar.
I am very busy on another project. so i dodin't update my post yet.
There is another bug to document which happens when the handle bar is close
to the border of the window or 0.
Thanks again.
Claude
On Fri, May 9, 2014 at 12:57 PM, Scott McDonnell
[email protected]:
This fix worked for me for enabling touch on IOS
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty] || mouseEvent.originalEvent.targetTouches[0][mouseProperty];
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-42688637
.
Claude Bérubé, PMP, PSM
[email protected]
514-529-0338
http://clients.teksavvy.com/~cberube/
from ui-layout.
Here is the solution I have been working with for a couple of month. Also tested on IOS.
lastX = mouseEvent[mouseProperty] || mouseEvent.touches[0][mouseProperty];
from ui-layout.
Both solution have a similar bug that occurs when the slider is close to the edge on desktop.
Uncaught TypeError: Cannot read property 'clientX' of undefined
ui-layout.js:188
lastX = mouseEvent[mouseProperty] || mouseEvent.touches[0][mouseProperty]
mouseEvent.touches[0][mouseProperty]
TypeError: Cannot read property '0' of undefined
mouseEvent[mouseProperty]
45
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty] || mouseEvent.originalEvent.targetTouches[0][mouseProperty];
mouseEvent[mouseProperty]
16
mouseEvent.originalEvent[mouseProperty]
TypeError: Cannot read property 'clientX' of undefined
mouseEvent.originalEvent.targetTouches[0][mouseProperty]
TypeError: Cannot read property 'targetTouches' of undefined
Thanks,
from ui-layout.
This should cover everything:
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty] || (mouseEvent.originalEvent.targetTouches ? mouseEvent.originalEvent.targetTouches[0][mouseProperty] : 0) || 0;
from ui-layout.
Thanks @scottmcdonnell @ticlaudeberube
I will make an update whenever i have time 👍
from ui-layout.
K It's actually this for me
lastX =
mouseEvent[mouseProperty] ||
(mouseEvent.originalEvent && mouseEvent.originalEvent[mouseProperty]) ||
(mouseEvent.targetTouches ? mouseEvent.targetTouches[0][mouseProperty] : 0) ||
0;
from ui-layout.
Works AOK! thanks again. Hawsome UI component.
from ui-layout.
I think there is an error on ui-layout.js:112:
(mouseEvent.targetTouches ? mouseEvent.targetTouches[0][ctrl.sizeProperties.mouseProperty] : 0)
It's allways returning 0 because targetTouches only exists inside originalEvent. So this is working as expected:
(mouseEvent.originalEvent.targetTouches ? mouseEvent.originalEvent.targetTouches[0][ctrl.sizeProperties.mouseProperty] : 0)
from ui-layout.
Related Issues (20)
- snap to edge support at reaching certain container size
- resizable parameter
- detecting pane size in pixel after resize HOT 1
- resize panel to contents
- Unable to stop splitter event
- disable animations HOT 1
- Odd problem trying to start ui-layout HOT 2
- Layout not rezized when parent size change HOT 2
- Ui-layout overlaps every other page element. Is not Bootstrap friendly HOT 1
- Horizontal movement of splitbar is not resizing contents HOT 1
- Main window resize
- How to disableToggle for individual splitbar? HOT 2
- splitbar can't stop moving by mousemove
- Add Version Number to source JS file
- Percent sized containers and toggle buttons with some browsers are broken HOT 1
- Percent min-size and max-size should be recalculated on resize
- CHANGELOG.md not up to date HOT 2
- Hiding and then showing the layout doesn't re-calculate offsets properly. HOT 2
- Toggle functionality not working properly
- Resizing doesn't work properly with an iframe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-layout.