Comments (4)
I realize this is probably not the easiest thing to describe, but could you be more specific about how exactly you are clicking and how behavior deviates from the expectation? (For instance, are you talking about double-clicking anywhere in the tree cell, or clicking the expando icon?)
The only ways I am able to get the tree to "miss" are the following, and I believe both are explainable (and would be issues pretty much anywhere):
- clicking the expando icon twice quickly only toggles expand/collapse once in some browsers/cases - some browsers specifically don't fire click events for the 2nd click of a detected double-click event.
- attempting to double-click the tree cell, but unintentionally moving the mouse between the two clicks - it seems to me like either browsers or the OS itself have a certain movement threshold beyond which the second click is no longer considered part of a double-click action, even if the two clicks were in close enough proximity in terms of time.
from dgrid.
As I mentioned, I have seen this in other cases, but it is most obvious when repeatedly opening/closing the same node.
Overall, something about the click handling makes the tree feel less responsive than it should. Other widgets do not all share this problem, so I'm pretty sure its not the browser or OS. For example, in the editor test (http://sitepen.github.com/dgrid/dgrid/test/Editor.html), the combo widget responds to every click as expected.
from dgrid.
@SitePenKenFranqueiro I agree with Mr. Aer0naut, but also see what you are saying. I was able to get different behavior from IE8 and Chrome 16.something when testing the double click you describe in your first bullet point. In IE8, the expando reacts responsively to clicks no matter how fast I try to click. In Chrome, it ends up missing clicks - probably because Chrome registers a double click like you said.
This all being said, the second test case Ar0naut points to has a 100% responsive date dropdown widget in all browsers. The dropdown gets toggled no matter how fast I click my mouse button. This seems at odds with the theory that Chrome (and other browsers) are hijacking your events as double clicks and there is nothing you can do about it.
Maybe a click and a double click on the expando icon mean the same thing? I think that would make for a much more usable dgrid.
from dgrid.
The Dijit drop-down widgets may seem a bit more responsive because they respond to mousedown for opening and closing its menu, rather than click. While we could listen to that for expando clicks, doing so for cell double-clicks would require significant logic that dblclick already handles quite adequately in most cases. Moreover, binding to mousedown means that users are unable to "drag off" to cancel, if they accidentally pressed their mouse button and don't actually want to click.
After some more testing, I am really not finding Tree to be all that unresponsive. I seriously have to try to get it to not respond (e.g. to produce one of the two circumstances I outlined above), and indeed, the only place I really see it being an issue is to click the same expando icon twice quickly in a row, which doesn't seem like a terribly common use case.
Is there a particular browser you find more problematic than others, that I should be looking at?
from dgrid.
Related Issues (20)
- ColumnSets with CompoundColumns and ColumnResizer does not always resize correctly.
- horizontal scrolling alignment issue dgrid
- horizontal HOT 1
- rowindex HOT 1
- Is this project still maintained? HOT 2
- DGrid 'select all' checkbox is not working as expected HOT 2
- OnDemandList does not refresh on store.setData HOT 2
- build issues with dojo 1.16 HOT 7
- Editor focusout handler is stopped when a row is removed
- CheckBox Editor does not work as expected in Safari HOT 3
- Removed row handing in Editor onblur HOT 2
- Editor: browser blur with active Select leads to bugged editor
- Update Intern from 3 to 4
- (ColumnSet +) CompoundColumns_findSortArrowParent(field) fails to find parent out of the 1st column set
- Website still points to v1.2.1
- Dgrid selector inconsistently working in touch screen devices like ipad dgrid/v1.1.0 HOT 10
- dgrid version 1.3.3 is breaking formatter function in dgrid HOT 2
- How to set dgrid editor checkbox readonly conditionally ?
- dgrid does not throw error on scroll (http-status-code) HOT 2
- dgrid.cell().element is undefined
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 dgrid.