Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus and selection broken in Edge and Chrome 55 #1334

Closed

Conversation

kruthikavenkatathri
Copy link

Pointer events break this.

@@ -8,6 +8,10 @@ define([
'./util/misc',
'dojo/_base/sniff'
], function (declare, aspect, domClass, on, lang, has, miscUtil) {

var hasPointer = has("pointer"),
hasMSPointer = hasPointer && hasPointer.slice(0, 2) === "MS",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be more robust to add something like has-pointer.js to https://github.com/SitePen/dgrid/tree/master/util and make these options all be feature tests so they may be excluded from Dojo builds (e.g. if you don't need IE10 pointer event support). Also would probably suggest an upstream fix to dojo/has...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dojo 1.10 and newer have an MS pointer event feature test, dojo/dojo@b25b080 , so we could use that. In order to support Dojo versions prior to 1.10, we could replicate that test in a dgrid/util/has-pointer module?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have dojo/dojo@b25b080 ... so again, I think if we properly use has('msPointer') that will work fine for Dojo 1.10+, though we should probably include the same pointer logic for pre-Dojo 1.10 dgrid users...

@msssk
Copy link
Contributor

msssk commented Jan 8, 2020

Fixed in #1445

@msssk msssk closed this Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants