scatter and scattergl have different behavior when there is only one trace has selectedpoints set.
scattergl:

scatter:

Although the scatter case is not possible to reproduce by selection interactions, it is possible from API.
Should be fixed within #2311
scatterandscatterglhave different behavior when there is only one trace hasselectedpointsset.scattergl:scatter:Although the
scattercase is not possible to reproduce by selection interactions, it is possible from API.Should be fixed within #2311