Which sentence contains a misplaced or dangling modifier?

A.The girl was happy to be picking flowers in the field.

B.They listened to the rain fall happily playing inside the apartment.

C.To adjust the volume, move the indicator bar up or down.

D.Cautiously, the dog began sniffing the new toy.