Unverified Commit 1ee87990 authored by Eilidh Southren's avatar Eilidh Southren Committed by GitHub

Revert "[Re-land] Exposed tooltip longPress (#118796)" (#119832)

This reverts commit d2788080.
parent 9eafbcc8
......@@ -751,7 +751,7 @@ class TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
behavior: HitTestBehavior.opaque,
onLongPress: (_triggerMode == TooltipTriggerMode.longPress) ? _handlePress : null,
onTap: (_triggerMode == TooltipTriggerMode.tap) ? _handleTap : null,
excludeFromSemantics: _excludeFromSemantics,
excludeFromSemantics: true,
child: result,
);
// Only check for hovering if there is a mouse connected.
......
......@@ -172,7 +172,6 @@ void main() {
hasEnabledState: true,
isEnabled: true,
hasTapAction: true,
hasLongPressAction: true,
isFocusable: true,
));
handle.dispose();
......@@ -217,7 +216,6 @@ void main() {
hasEnabledState: true,
isEnabled: true,
hasTapAction: true,
hasLongPressAction: true,
isFocusable: true,
));
handle.dispose();
......
......@@ -672,7 +672,6 @@ void main() {
tooltip: 'Previous month',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......@@ -681,7 +680,6 @@ void main() {
tooltip: 'Next month',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......
......@@ -2047,10 +2047,7 @@ void main() {
children: <TestSemantics>[
TestSemantics(
tooltip: 'Delete',
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress
],
actions: <SemanticsAction>[SemanticsAction.tap],
textDirection: TextDirection.ltr,
flags: <SemanticsFlag>[
SemanticsFlag.isButton,
......
......@@ -833,7 +833,6 @@ void main() {
tooltip: 'Switch to input',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......@@ -877,7 +876,6 @@ void main() {
tooltip: 'Switch to calendar',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......
......@@ -700,7 +700,6 @@ void main() {
tooltip: 'Add Photo',
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress,
],
flags: <SemanticsFlag>[
SemanticsFlag.hasEnabledState,
......
......@@ -620,10 +620,7 @@ void main() {
SemanticsFlag.isEnabled,
SemanticsFlag.isFocusable,
],
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress,
],
actions: <SemanticsAction>[SemanticsAction.tap],
tooltip: 'Back',
textDirection: TextDirection.ltr,
),
......
......@@ -1416,9 +1416,6 @@ void main() {
id: 1,
tooltip: 'TIP',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
);
......@@ -1619,9 +1616,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......
......@@ -1075,9 +1075,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......@@ -1121,9 +1118,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment