forked from firka/flutter
Support trackpad gestures in framework (#89944)
* Implement trackpad gestures in framework * Touch and Pan/Zoom pointers have separate IDs now * Handle trackpad pointer device type * Respect supportedDevices for pan/zoom events * Update after rebase * Fix check failures * Avoid error with very short drags * Address feedback * Refactor drag event handler * Address more feedback * Add some missing punctuation
This commit is contained in:
@@ -45,5 +45,7 @@
|
||||
<false/>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -45,5 +45,7 @@
|
||||
<false/>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1383,6 +1383,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
});
|
||||
@@ -1400,6 +1402,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
});
|
||||
@@ -1417,6 +1421,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
}, overrides: <Type, Generator>{
|
||||
@@ -1443,6 +1449,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
}, overrides: <Type, Generator>{
|
||||
@@ -1469,6 +1477,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
});
|
||||
@@ -1486,6 +1496,8 @@ void main() {
|
||||
expect(plistFile, exists);
|
||||
final bool disabled = _getBooleanValueFromPlist(plistFile: plistFile, key: 'CADisableMinimumFrameDurationOnPhone');
|
||||
expect(disabled, isTrue);
|
||||
final bool indirectInput = _getBooleanValueFromPlist(plistFile: plistFile, key: 'UIApplicationSupportsIndirectInputEvents');
|
||||
expect(indirectInput, isTrue);
|
||||
final String displayName = _getStringValueFromPlist(plistFile: plistFile, key: 'CFBundleDisplayName');
|
||||
expect(displayName, 'My Project');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user