Comments (11)
Are you using a device that is equipped with both mouse (touchpad) and touch screen ?
I have never tried such sort of devices yet, but have supposed zebra can trigger number of problems here because of the way zebra does the mouse/touch event handling. Zebra tries to guess if the given device is touch screen or not (what already is not very proper solution) and than register either mouse events handler or touch events handler (but never both). Definitely the behavior should be corrected. Will fix it.
from zebkit.
Windows 8.1 Surface Pro using Zebra is really bad with Chrome and with IE. Firefox works just fine.. but there seems to be no way to handle both touch/mouse and stylus events just die.. i think it's the way the browsers handle the new concept of "pointer events"
from zebkit.
I am on the way to support both mouse and touch at the same time. And at last utilize IE pointer events.
from zebkit.
That would be fantastic, the sooner the better, for whatever reason users of my app love the damn Surface Pro, have you thought about implementing any of the polyfill libraries such as hand.js (http://handjs.codeplex.com/) I was actually trying to do this on my app and was pretty close to success
from zebkit.
Have added some simple and fast code into zebra to support pointer events and support simultaneous working of mouse and touch events. I know it is still work not well, but at least WIN IE touch devices should start "living". Any feedback is appreciated :)
from zebkit.
Did some recent tests and things are working much better across all browsers with touch screen devices and even stylus on the Surface Pro. My only complaint now is the ScrollPans - I know you should be able to scroll them with a touch and drag but in some cases - specifically mine I'd much rather force display the scrollBar and have them use that, because scrolling within the panel gets very confusing in some cases (designerPanel, multiple scrollpans on one page, etc)
from zebkit.
You can disable mobile scrolling by removing the following part from "zebra.json":
"?zebra.isTouchable": {
"mscroll": { "$zebra.ui.MobileScrollMan" :[] }
},
and force to show scroll bars by correcting "autoHide" property of "ScrollPan" component to false value in "zebra.json":
"ScrollPan": {
"autoHide": false
},
from zebkit.
How about using custom.json - I don't like editing zebra.json for pulling new updates and integration purposes.. what would be method to do this in custom.json loaded with bag
from zebkit.
You can do it without JSON, but in the case of manager (zebra.ui.MobileScrollMan) it is a little bit tricky, since every manager can be registered as global events listener during its instantiation. Anyway to avoid "zebra,json" editing do something like the following:
zebra.ready(function() {
zebra.ui.ScrollPan.autoHide = false;
// make mobile scroll manager deaf it has been activated
if (zebra.ui.mscroll != null) zebra.events.removeListener(zebra.ui.mscroll);
...
});
from zebkit.
I prefer the json method, but I load a custom.json rather than directly editing the zebra.json.. where I just override..
from zebkit.
You can overwrite UI component default properties values with loading of another JSON, but you cannot abolish actions that the instantiated with "zebra.json" JSON objects did (for instance registration "MobileScrollMan" as a global events listener). Some time ago zebra had two steps JSON loading procedure. First step loads JSON or chain of JSONs and only second starts interpreting it. But I found the approach too complicated and even with this approach you could not reject actions that has been performed.
To overwrite default properties values do the following:
zebra.ready(function() {
new zebra.ui.Bag(zebra.ui).load(urlToYourJson);
...
});
from zebkit.
Related Issues (20)
- Rotation sample HOT 7
- Keyboard Event error when run in CEF framework HOT 2
- How to trigger the tree and Combo box selected event HOT 5
- How to refresh page after I have updated the UI component? HOT 7
- The zebkit canvas will block the html event.
- Calendar can't choose time, minute and second HOT 2
- ui.Lable and grid cells and captions alignment is changed in latest chrome HOT 9
- Is there a possibility to export hierarchy of UI components to ZSON? HOT 2
- INPUT fields: Unable to enter special / national characters HOT 2
- How to stop event in zebra?
- Does zebkit works with webpack?
- Error on display text, this is empty in Edge and Internet Explorer version 11-10
- Resizing the left caption of Grid
- When We create Object of new ui.zCanvas(element,width,height) except chrome other browser throw type undefine or null error. HOT 2
- Issue regarding margin left or padding left to label.
- HtmlTextField can't works in modal window HOT 1
- Future of Zebkit HOT 2
- HtmlElement Placed In ShaperPan Is Not Visible
- how can I change the text label of a button? HOT 4
- setFullSize causing an issue HOT 2
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 zebkit.